1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00

chore: remove DENO_FUTURE=1 from spec tests (#25329)

Towards https://github.com/denoland/deno/issues/25241
This commit is contained in:
Bartek Iwańczuk 2024-08-31 22:25:32 +01:00 committed by GitHub
parent 3a63572187
commit 4e19474129
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
43 changed files with 5 additions and 148 deletions

View file

@ -17,9 +17,6 @@
"exitCode": 1 "exitCode": 1
}, },
{ {
"envs": {
"DENO_FUTURE": "1"
},
"args": "install ajv@latest", "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", "output": "error: jsr:ajv was not found, but a matching npm package exists. Did you mean `deno install npm:ajv@latest`?\n",
"exitCode": 1 "exitCode": 1

View file

@ -1,8 +1,5 @@
{ {
"tempDir": true, "tempDir": true,
"envs": {
"DENO_FUTURE": "1"
},
"steps": [{ "steps": [{
"args": "install", "args": "install",
"output": "[WILDCARD]" "output": "[WILDCARD]"

View file

@ -1,7 +1,4 @@
{ {
"envs": {
"DENO_FUTURE": "1"
},
"tempDir": true, "tempDir": true,
"steps": [{ "steps": [{
"args": "install", "args": "install",

View file

@ -2,17 +2,11 @@
"steps": [ "steps": [
{ {
"args": "run -A --unstable-fs --config ../../../config/deno.json main.js", "args": "run -A --unstable-fs --config ../../../config/deno.json main.js",
"output": "main.out", "output": "main.out"
"envs": {
"DENO_FUTURE": "1"
}
}, },
{ {
"args": "run -A --unstable-fs --config ../../../config/deno.json worker.js", "args": "run -A --unstable-fs --config ../../../config/deno.json worker.js",
"output": "main.out", "output": "main.out"
"envs": {
"DENO_FUTURE": "1"
}
} }
] ]
} }

View file

@ -3,18 +3,12 @@
{ {
// Notice `--unstable-*` flags are not needed anymore // Notice `--unstable-*` flags are not needed anymore
"args": "run -A --config ../../../config/deno.json main.js", "args": "run -A --config ../../../config/deno.json main.js",
"output": "main.out", "output": "main.out"
"envs": {
"DENO_FUTURE": "1"
}
}, },
{ {
// Notice `--unstable-*` flags are not needed anymore // Notice `--unstable-*` flags are not needed anymore
"args": "run -A --config ../../../config/deno.json worker.js", "args": "run -A --config ../../../config/deno.json worker.js",
"output": "main.out", "output": "main.out"
"envs": {
"DENO_FUTURE": "1"
}
} }
] ]
} }

View file

@ -2,9 +2,6 @@
"tempDir": true, "tempDir": true,
"steps": [ "steps": [
{ {
"envs": {
"DENO_FUTURE": "1"
},
"args": "install npm:ajv@latest", "args": "install npm:ajv@latest",
"output": "install.out" "output": "install.out"
} }

View file

@ -1,8 +1,5 @@
{ {
"tempDir": true, "tempDir": true,
"envs": {
"DENO_FUTURE": "1"
},
"steps": [ "steps": [
{ {
"args": "install --global --root ./bins --name deno-test-bin ./pkg/main.js", "args": "install --global --root ./bins --name deno-test-bin ./pkg/main.js",

View file

@ -1,8 +1,5 @@
{ {
"tempDir": true, "tempDir": true,
"envs": {
"DENO_FUTURE": "1"
},
"steps": [ "steps": [
{ {
"args": "install npm:@denotest/esm-basic", "args": "install npm:@denotest/esm-basic",

View file

@ -1,8 +1,5 @@
{ {
"tempDir": true, "tempDir": true,
"envs": {
"DENO_FUTURE": "1"
},
"steps": [ "steps": [
{ {
"args": "install npm:@denotest/esm-basic", "args": "install npm:@denotest/esm-basic",

View file

@ -1,8 +1,5 @@
{ {
"tempDir": true, "tempDir": true,
"envs": {
"DENO_FUTURE": "1"
},
"steps": [ "steps": [
{ {
"args": "install", "args": "install",

View file

@ -2,9 +2,6 @@
"tests": { "tests": {
"install_sets_up_node_modules": { "install_sets_up_node_modules": {
"tempDir": true, "tempDir": true,
"envs": {
"DENO_FUTURE": "1"
},
"steps": [ "steps": [
{ {
"args": "install", "args": "install",
@ -27,9 +24,6 @@
}, },
"install_sets_up_node_modules_with_lockfile": { "install_sets_up_node_modules_with_lockfile": {
"tempDir": true, "tempDir": true,
"envs": {
"DENO_FUTURE": "1"
},
"steps": [ "steps": [
{ {
"args": "install", "args": "install",
@ -65,9 +59,6 @@
}, },
"install_errors_corrupted_lockfile": { "install_errors_corrupted_lockfile": {
"tempDir": true, "tempDir": true,
"envs": {
"DENO_FUTURE": "1"
},
"steps": [ "steps": [
{ {
"args": "install", "args": "install",

View file

@ -2,9 +2,6 @@
"tempDir": true, "tempDir": true,
"steps": [ "steps": [
{ {
"envs": {
"DENO_FUTURE": "1"
},
"args": "install", "args": "install",
"output": "install.out" "output": "install.out"
} }

View file

@ -1,8 +1,5 @@
{ {
"tempDir": true, "tempDir": true,
"envs": {
"DENO_FUTURE": "1"
},
"steps": [ "steps": [
{ {
"args": "install npm:@denotest/deprecated-package", "args": "install npm:@denotest/deprecated-package",

View file

@ -1,8 +1,5 @@
{ {
"tempDir": true, "tempDir": true,
"envs": {
"DENO_FUTURE": "1"
},
"steps": [ "steps": [
{ {
"cwd": "./test-project", "cwd": "./test-project",

View file

@ -60,9 +60,6 @@
] ]
}, },
"error_when_package_json_changed": { "error_when_package_json_changed": {
"envs": {
"DENO_FUTURE": "1"
},
"steps": [ "steps": [
{ {
"args": [ "args": [

View file

@ -1,7 +1,4 @@
{ {
"envs": {
"DENO_FUTURE": "1"
},
"args": "run --check main.ts", "args": "run --check main.ts",
"output": "main.out" "output": "main.out"
} }

View file

@ -1,7 +1,4 @@
{ {
"envs": {
"DENO_FUTURE": "1"
},
"args": "run main.mjs", "args": "run main.mjs",
"output": "main.out" "output": "main.out"
} }

View file

@ -1,7 +1,4 @@
{ {
"envs": {
"DENO_FUTURE": "1"
},
"tempDir": true, "tempDir": true,
"steps": [ "steps": [
{ {

View file

@ -2,9 +2,6 @@
"tempDir": true, "tempDir": true,
"tests": { "tests": {
"future_not_installed": { "future_not_installed": {
"envs": {
"DENO_FUTURE": "1"
},
"steps": [{ "steps": [{
"args": "run -A not_installed.ts", "args": "run -A not_installed.ts",
"output": "future_not_installed.out", "output": "future_not_installed.out",
@ -12,9 +9,6 @@
}] }]
}, },
"future_invalid_sub_path": { "future_invalid_sub_path": {
"envs": {
"DENO_FUTURE": "1"
},
"steps": [{ "steps": [{
"args": "install", "args": "install",
"output": "[WILDCARD]" "output": "[WILDCARD]"

View file

@ -2,9 +2,6 @@
"tempDir": true, "tempDir": true,
"tests": { "tests": {
"byonm": { "byonm": {
"envs": {
"DENO_FUTURE": "1"
},
"steps": [{ "steps": [{
"args": "install", "args": "install",
"output": "[WILDCARD]" "output": "[WILDCARD]"

View file

@ -2,9 +2,6 @@
"tempDir": true, "tempDir": true,
"tests": { "tests": {
"byonm": { "byonm": {
"envs": {
"DENO_FUTURE": "1"
},
"steps": [{ "steps": [{
"args": "install", "args": "install",
"output": "[WILDCARD]" "output": "[WILDCARD]"

View file

@ -1,8 +1,5 @@
{ {
"tempDir": true, "tempDir": true,
"envs": {
"DENO_FUTURE": "1"
},
"steps": [{ "steps": [{
"commandName": "npm", "commandName": "npm",
"args": "install", "args": "install",

View file

@ -1,7 +1,4 @@
{ {
"args": "run -A main.ts", "args": "run -A main.ts",
"output": "main.out", "output": "main.out"
"envs": {
"DENO_FUTURE": "1"
}
} }

View file

@ -1,7 +1,4 @@
{ {
"envs": {
"DENO_FUTURE": "1"
},
"steps": [{ "steps": [{
// should auto-install because no package.json // should auto-install because no package.json
"args": "run --quiet main.ts", "args": "run --quiet main.ts",

View file

@ -1,7 +1,4 @@
{ {
"envs": {
"DENO_FUTURE": "1"
},
"tempDir": true, "tempDir": true,
"steps": [{ "steps": [{
// byonm where this fails be // byonm where this fails be

View file

@ -74,9 +74,6 @@
}, },
"future_install_lifecycle_scripts": { "future_install_lifecycle_scripts": {
"tempDir": true, "tempDir": true,
"envs": {
"DENO_FUTURE": "1"
},
"steps": [ "steps": [
{ {
"args": [ "args": [

View file

@ -1,8 +1,5 @@
{ {
"tempDir": true, "tempDir": true,
"envs": {
"DENO_FUTURE": "1"
},
"steps": [{ "steps": [{
"args": "install", "args": "install",
"output": "[WILDCARD]" "output": "[WILDCARD]"

View file

@ -2,9 +2,6 @@
"tempDir": true, "tempDir": true,
"tests": { "tests": {
"deno_install": { "deno_install": {
"envs": {
"DENO_FUTURE": "1"
},
"steps": [{ "steps": [{
"args": "install", "args": "install",
"output": "install.out" "output": "install.out"

View file

@ -1,7 +1,4 @@
{ {
"envs": {
"DENO_FUTURE": "1"
},
"tempDir": true, "tempDir": true,
"args": "install", "args": "install",
"output": "main.out", "output": "main.out",

View file

@ -1,7 +1,4 @@
{ {
"envs": {
"DENO_FUTURE": "1"
},
"tempDir": true, "tempDir": true,
"args": "install", "args": "install",
"output": "main.out", "output": "main.out",

View file

@ -1,7 +1,4 @@
{ {
"envs": {
"DENO_FUTURE": "1"
},
"tempDir": true, "tempDir": true,
"steps": [{ "steps": [{
"args": "install", "args": "install",

View file

@ -1,7 +1,4 @@
{ {
"envs": {
"DENO_FUTURE": "1"
},
"tempDir": true, "tempDir": true,
"args": "run -A main.js", "args": "run -A main.js",
"output": "main.out" "output": "main.out"

View file

@ -1,7 +1,6 @@
{ {
"tempDir": true, "tempDir": true,
"envs": { "envs": {
"DENO_FUTURE": "1",
"HOME": "$PWD/../", "HOME": "$PWD/../",
"USERPROFILE": "$PWD\\..\\" "USERPROFILE": "$PWD\\..\\"
}, },

View file

@ -1,6 +1,5 @@
{ {
"envs": { "envs": {
"DENO_FUTURE": "1",
"USERPROFILE": "$DENO_DIR", "USERPROFILE": "$DENO_DIR",
"HOME": "$DENO_DIR" "HOME": "$DENO_DIR"
}, },

View file

@ -1,7 +1,4 @@
{ {
"envs": {
"DENO_FUTURE": "1"
},
"tempDir": true, "tempDir": true,
"steps": [{ "steps": [{
"args": "install", "args": "install",

View file

@ -1,7 +1,4 @@
{ {
"envs": {
"DENO_FUTURE": "1"
},
"tempDir": true, "tempDir": true,
"steps": [{ "steps": [{
"args": "install", "args": "install",

View file

@ -1,7 +1,4 @@
{ {
"envs": {
"DENO_FUTURE": "1"
},
"tempDir": true, "tempDir": true,
"steps": [{ "steps": [{
"args": "install", "args": "install",

View file

@ -14,9 +14,6 @@
"output": "b/main_node_modules_dir.out" "output": "b/main_node_modules_dir.out"
}, },
"byonm": { "byonm": {
"envs": {
"DENO_FUTURE": "1"
},
"steps": [{ "steps": [{
"args": "install", "args": "install",
"output": "[WILDCARD]" "output": "[WILDCARD]"

View file

@ -2,9 +2,6 @@
"tempDir": true, "tempDir": true,
"tests": { "tests": {
"conflicting_deps": { "conflicting_deps": {
"envs": {
"DENO_FUTURE": "1"
},
"steps": [ "steps": [
{ {
"args": "install", "args": "install",

View file

@ -2,9 +2,6 @@
"tempDir": true, "tempDir": true,
"tests": { "tests": {
"conflicting_deps": { "conflicting_deps": {
"envs": {
"DENO_FUTURE": "1"
},
"steps": [ "steps": [
{ {
"args": "install", "args": "install",

View file

@ -1,7 +1,4 @@
{ {
"envs": {
"DENO_FUTURE": "1"
},
"tempDir": true, "tempDir": true,
"steps": [{ "steps": [{
"args": "install", "args": "install",

View file

@ -32,10 +32,6 @@
"args": "install", "args": "install",
"output": "[WILDCARD]" "output": "[WILDCARD]"
}, { }, {
// implied byonm from DENO_FUTURE
"envs": {
"DENO_FUTURE": "1"
},
"args": "task say", "args": "task say",
"output": "package_json_say.out" "output": "package_json_say.out"
}, { }, {

View file

@ -208,11 +208,6 @@ impl TestContextBuilder {
self self
} }
pub fn add_future_env_vars(mut self) -> Self {
self = self.env("DENO_FUTURE", "1");
self
}
pub fn add_jsr_env_vars(mut self) -> Self { pub fn add_jsr_env_vars(mut self) -> Self {
for (key, value) in env_vars_for_jsr_tests() { for (key, value) in env_vars_for_jsr_tests() {
self = self.env(key, value); self = self.env(key, value);