Skip to content

Commit

Permalink
chore: remove DENO_FUTURE=1 from spec tests (denoland#25329)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju authored Aug 31, 2024
1 parent 3a63572 commit 4e19474
Show file tree
Hide file tree
Showing 43 changed files with 5 additions and 148 deletions.
3 changes: 0 additions & 3 deletions tests/specs/add/missing_npm_specifier/__test__.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"exitCode": 1
},
{
"envs": {
"DENO_FUTURE": "1"
},
"args": "install ajv@latest",
"output": "error: jsr:ajv was not found, but a matching npm package exists. Did you mean `deno install npm:ajv@latest`?\n",
"exitCode": 1
Expand Down
3 changes: 0 additions & 3 deletions tests/specs/compile/byonm_main_sub_dir/__test__.jsonc
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"tempDir": true,
"envs": {
"DENO_FUTURE": "1"
},
"steps": [{
"args": "install",
"output": "[WILDCARD]"
Expand Down
3 changes: 0 additions & 3 deletions tests/specs/compile/npmrc_byonm/__test__.jsonc
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"envs": {
"DENO_FUTURE": "1"
},
"tempDir": true,
"steps": [{
"args": "install",
Expand Down
10 changes: 2 additions & 8 deletions tests/specs/future/runtime_api/__test__.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,11 @@
"steps": [
{
"args": "run -A --unstable-fs --config ../../../config/deno.json main.js",
"output": "main.out",
"envs": {
"DENO_FUTURE": "1"
}
"output": "main.out"
},
{
"args": "run -A --unstable-fs --config ../../../config/deno.json worker.js",
"output": "main.out",
"envs": {
"DENO_FUTURE": "1"
}
"output": "main.out"
}
]
}
10 changes: 2 additions & 8 deletions tests/specs/future/unstable_flags/__test__.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,12 @@
{
// Notice `--unstable-*` flags are not needed anymore
"args": "run -A --config ../../../config/deno.json main.js",
"output": "main.out",
"envs": {
"DENO_FUTURE": "1"
}
"output": "main.out"
},
{
// Notice `--unstable-*` flags are not needed anymore
"args": "run -A --config ../../../config/deno.json worker.js",
"output": "main.out",
"envs": {
"DENO_FUTURE": "1"
}
"output": "main.out"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
"tempDir": true,
"steps": [
{
"envs": {
"DENO_FUTURE": "1"
},
"args": "install npm:ajv@latest",
"output": "install.out"
}
Expand Down
3 changes: 0 additions & 3 deletions tests/specs/install/future_install_global/__test__.jsonc
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"tempDir": true,
"envs": {
"DENO_FUTURE": "1"
},
"steps": [
{
"args": "install --global --root ./bins --name deno-test-bin ./pkg/main.js",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"tempDir": true,
"envs": {
"DENO_FUTURE": "1"
},
"steps": [
{
"args": "install npm:@denotest/esm-basic",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"tempDir": true,
"envs": {
"DENO_FUTURE": "1"
},
"steps": [
{
"args": "install npm:@denotest/esm-basic",
Expand Down
3 changes: 0 additions & 3 deletions tests/specs/install/future_install_local_deno/__test__.jsonc
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"tempDir": true,
"envs": {
"DENO_FUTURE": "1"
},
"steps": [
{
"args": "install",
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
"tempDir": true,
"steps": [
{
"envs": {
"DENO_FUTURE": "1"
},
"args": "install",
"output": "install.out"
}
Expand Down
3 changes: 0 additions & 3 deletions tests/specs/install/install_deprecated_package/__test__.jsonc
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"tempDir": true,
"envs": {
"DENO_FUTURE": "1"
},
"steps": [
{
"args": "install npm:@denotest/deprecated-package",
Expand Down
3 changes: 0 additions & 3 deletions tests/specs/install/move_after_install/__test__.jsonc
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"tempDir": true,
"envs": {
"DENO_FUTURE": "1"
},
"steps": [
{
"cwd": "./test-project",
Expand Down
3 changes: 0 additions & 3 deletions tests/specs/lockfile/frozen_lockfile/__test__.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@
]
},
"error_when_package_json_changed": {
"envs": {
"DENO_FUTURE": "1"
},
"steps": [
{
"args": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"envs": {
"DENO_FUTURE": "1"
},
"args": "run --check main.ts",
"output": "main.out"
}
3 changes: 0 additions & 3 deletions tests/specs/node/imports_wildcard/__test__.jsonc
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"envs": {
"DENO_FUTURE": "1"
},
"args": "run main.mjs",
"output": "main.out"
}
3 changes: 0 additions & 3 deletions tests/specs/npm/bin_entries_prefer_closer/__test__.jsonc
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"envs": {
"DENO_FUTURE": "1"
},
"tempDir": true,
"steps": [
{
Expand Down
6 changes: 0 additions & 6 deletions tests/specs/npm/byonm/__test__.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,13 @@
"tempDir": true,
"tests": {
"future_not_installed": {
"envs": {
"DENO_FUTURE": "1"
},
"steps": [{
"args": "run -A not_installed.ts",
"output": "future_not_installed.out",
"exitCode": 1
}]
},
"future_invalid_sub_path": {
"envs": {
"DENO_FUTURE": "1"
},
"steps": [{
"args": "install",
"output": "[WILDCARD]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
"tempDir": true,
"tests": {
"byonm": {
"envs": {
"DENO_FUTURE": "1"
},
"steps": [{
"args": "install",
"output": "[WILDCARD]"
Expand Down
3 changes: 0 additions & 3 deletions tests/specs/npm/check_types_in_types_pkg/__test__.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
"tempDir": true,
"tests": {
"byonm": {
"envs": {
"DENO_FUTURE": "1"
},
"steps": [{
"args": "install",
"output": "[WILDCARD]"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"tempDir": true,
"envs": {
"DENO_FUTURE": "1"
},
"steps": [{
"commandName": "npm",
"args": "install",
Expand Down
5 changes: 1 addition & 4 deletions tests/specs/npm/exec_file_inside_npm_package/__test__.jsonc
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"args": "run -A main.ts",
"output": "main.out",
"envs": {
"DENO_FUTURE": "1"
}
"output": "main.out"
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"envs": {
"DENO_FUTURE": "1"
},
"steps": [{
// should auto-install because no package.json
"args": "run --quiet main.ts",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"envs": {
"DENO_FUTURE": "1"
},
"tempDir": true,
"steps": [{
// byonm where this fails be
Expand Down
3 changes: 0 additions & 3 deletions tests/specs/npm/lifecycle_scripts/__test__.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@
},
"future_install_lifecycle_scripts": {
"tempDir": true,
"envs": {
"DENO_FUTURE": "1"
},
"steps": [
{
"args": [
Expand Down
3 changes: 0 additions & 3 deletions tests/specs/npm/npm_pkg_depend_dep_same_name/__test__.jsonc
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"tempDir": true,
"envs": {
"DENO_FUTURE": "1"
},
"steps": [{
"args": "install",
"output": "[WILDCARD]"
Expand Down
3 changes: 0 additions & 3 deletions tests/specs/npm/npmrc/__test__.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
"tempDir": true,
"tests": {
"deno_install": {
"envs": {
"DENO_FUTURE": "1"
},
"steps": [{
"args": "install",
"output": "install.out"
Expand Down
3 changes: 0 additions & 3 deletions tests/specs/npm/npmrc_bad_registry_config/__test__.jsonc
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"envs": {
"DENO_FUTURE": "1"
},
"tempDir": true,
"args": "install",
"output": "main.out",
Expand Down
3 changes: 0 additions & 3 deletions tests/specs/npm/npmrc_bad_token/__test__.jsonc
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"envs": {
"DENO_FUTURE": "1"
},
"tempDir": true,
"args": "install",
"output": "main.out",
Expand Down
3 changes: 0 additions & 3 deletions tests/specs/npm/npmrc_basic_auth/__test__.jsonc
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"envs": {
"DENO_FUTURE": "1"
},
"tempDir": true,
"steps": [{
"args": "install",
Expand Down
3 changes: 0 additions & 3 deletions tests/specs/npm/npmrc_deno_json/__test__.jsonc
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"envs": {
"DENO_FUTURE": "1"
},
"tempDir": true,
"args": "run -A main.js",
"output": "main.out"
Expand Down
1 change: 0 additions & 1 deletion tests/specs/npm/npmrc_homedir/__test__.jsonc
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"tempDir": true,
"envs": {
"DENO_FUTURE": "1",
"HOME": "$PWD/../",
"USERPROFILE": "$PWD\\..\\"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"envs": {
"DENO_FUTURE": "1",
"USERPROFILE": "$DENO_DIR",
"HOME": "$DENO_DIR"
},
Expand Down
3 changes: 0 additions & 3 deletions tests/specs/npm/npmrc_password_no_username/__test__.jsonc
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"envs": {
"DENO_FUTURE": "1"
},
"tempDir": true,
"steps": [{
"args": "install",
Expand Down
3 changes: 0 additions & 3 deletions tests/specs/npm/npmrc_username_no_password/__test__.jsonc
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"envs": {
"DENO_FUTURE": "1"
},
"tempDir": true,
"steps": [{
"args": "install",
Expand Down
3 changes: 0 additions & 3 deletions tests/specs/npm/npmrc_username_password/__test__.jsonc
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"envs": {
"DENO_FUTURE": "1"
},
"tempDir": true,
"steps": [{
"args": "install",
Expand Down
3 changes: 0 additions & 3 deletions tests/specs/npm/workspace_basic/__test__.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
"output": "b/main_node_modules_dir.out"
},
"byonm": {
"envs": {
"DENO_FUTURE": "1"
},
"steps": [{
"args": "install",
"output": "[WILDCARD]"
Expand Down
3 changes: 0 additions & 3 deletions tests/specs/npm/workspace_conflicting_dep/__test__.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
"tempDir": true,
"tests": {
"conflicting_deps": {
"envs": {
"DENO_FUTURE": "1"
},
"steps": [
{
"args": "install",
Expand Down
Loading

0 comments on commit 4e19474

Please sign in to comment.