summaryrefslogtreecommitdiff
path: root/tests/specs/run
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-08-30 18:58:58 +0100
committerGitHub <noreply@github.com>2024-08-30 13:58:58 -0400
commitb1c6142f741a507ba6594ab174065e00213100b9 (patch)
treef3dce3e55e4b10b6cf0570dddb6f69340da7a0cf /tests/specs/run
parent4639ae655e9db396fdf4408961db59372334b69b (diff)
BREAKING: `DENO_FUTURE=1` by default, or welcome to Deno 2.0 (#25213)
This commit effectively turns Deno into Deno 2.0. This is done by forcing `DENO_FUTURE=1` env var, that was available in the past few months to try Deno 2 changes. This commit contains several breaking changes scheduled for Deno 2: - all deprecated JavaScript APIs are not available any more, mostly `Deno.*` APIs - `window` global is removed - FFI, WebGPU and FS APIs are now stable and don't require `--unstable-*` flags - import assertions are no longer supported - "bring your own node modules" is enabled by default This is the first commit in a series that are scheduled before the Deno 2 release. Follow up work is tracked in https://github.com/denoland/deno/issues/25241. --------- Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com> Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com> Co-authored-by: Nathan Whitaker <nathan@deno.com>
Diffstat (limited to 'tests/specs/run')
-rw-r--r--tests/specs/run/no_deno_json/__test__.jsonc4
-rw-r--r--tests/specs/run/package_json/invalid_value/__test__.jsonc2
-rw-r--r--tests/specs/run/ts_import_assertions/__test__.jsonc2
-rw-r--r--tests/specs/run/workspaces/explicit_import_map/__test__.jsonc2
4 files changed, 10 insertions, 0 deletions
diff --git a/tests/specs/run/no_deno_json/__test__.jsonc b/tests/specs/run/no_deno_json/__test__.jsonc
index 5da0209b9..c8e32fa19 100644
--- a/tests/specs/run/no_deno_json/__test__.jsonc
+++ b/tests/specs/run/no_deno_json/__test__.jsonc
@@ -29,12 +29,16 @@
"cwd": "code"
},
"auto_discovered": {
+ // TODO(2.0): most likely needs to change output to not expect auto-install
+ "ignore": true,
// auto-discovered node_modules relative package.json
"args": "run -A main.js",
"output": "code/sub_dir/main.out",
"cwd": "code/sub_dir"
},
"auto_discovered_arg": {
+ // TODO(2.0): most likely needs to change output to not expect auto-install
+ "ignore": true,
// auto-discovered for local script arg
"args": "run -L debug -A code/main.ts", // notice this is not in the sub dir
"output": "main.out"
diff --git a/tests/specs/run/package_json/invalid_value/__test__.jsonc b/tests/specs/run/package_json/invalid_value/__test__.jsonc
index c960dd302..7f85713cb 100644
--- a/tests/specs/run/package_json/invalid_value/__test__.jsonc
+++ b/tests/specs/run/package_json/invalid_value/__test__.jsonc
@@ -1,5 +1,7 @@
{
"tempDir": true,
+ // TODO(2.0): update the tests, should probably run install first
+ "ignore": true,
"tests": {
// should run fine when not referencing a failing dep entry
"run_ok": {
diff --git a/tests/specs/run/ts_import_assertions/__test__.jsonc b/tests/specs/run/ts_import_assertions/__test__.jsonc
index 5d8110ae2..6e3ffb044 100644
--- a/tests/specs/run/ts_import_assertions/__test__.jsonc
+++ b/tests/specs/run/ts_import_assertions/__test__.jsonc
@@ -1,6 +1,8 @@
{
"tests": {
"assertion": {
+ // TODO(2.0): disable import assertion support in TS.
+ "ignore": true,
"steps": [{
"args": "run assertion.ts",
"exitCode": 1,
diff --git a/tests/specs/run/workspaces/explicit_import_map/__test__.jsonc b/tests/specs/run/workspaces/explicit_import_map/__test__.jsonc
index 2bd0d3bcc..b13fde73a 100644
--- a/tests/specs/run/workspaces/explicit_import_map/__test__.jsonc
+++ b/tests/specs/run/workspaces/explicit_import_map/__test__.jsonc
@@ -1,4 +1,6 @@
{
+ // TODO(2.0): update the test, should probably call install first
+ "ignore": true,
"args": "run -A --import-map=./import_map.json main.ts",
"output": "main.out",
"tempDir": true