diff options
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/integration_tests.rs | 7 | ||||
-rw-r--r-- | cli/tests/std_tests.rs | 1 | ||||
-rw-r--r-- | cli/tests/unstable.js | 2 | ||||
-rw-r--r-- | cli/tests/unstable.out | 1 |
4 files changed, 11 insertions, 0 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index 819ccda72..ae905840d 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -1568,6 +1568,13 @@ itest!(top_level_for_await_ts { output: "top_level_for_await.out", }); +itest!(unstable { + args: "run unstable.js", + check_stderr: true, + exit_code: 70, + output: "unstable.out", +}); + itest!(_053_import_compression { args: "run --reload --allow-net 053_import_compression/main.ts", output: "053_import_compression.out", diff --git a/cli/tests/std_tests.rs b/cli/tests/std_tests.rs index 32906c2fa..f5b1f1998 100644 --- a/cli/tests/std_tests.rs +++ b/cli/tests/std_tests.rs @@ -18,6 +18,7 @@ mod tests { let mut deno = deno_cmd .current_dir(cwd) // note: std tests expect to run from "std" dir .arg("test") + .arg("--unstable") .arg("--seed=86") // Some tests rely on specific random numbers. .arg("-A") // .arg("-Ldebug") diff --git a/cli/tests/unstable.js b/cli/tests/unstable.js new file mode 100644 index 000000000..e6f2274cd --- /dev/null +++ b/cli/tests/unstable.js @@ -0,0 +1,2 @@ +// This program should require the --unstable flag +Deno.openPlugin("foo"); diff --git a/cli/tests/unstable.out b/cli/tests/unstable.out new file mode 100644 index 000000000..31fead7d9 --- /dev/null +++ b/cli/tests/unstable.out @@ -0,0 +1 @@ +Unstable API 'Deno.openPlugin'. The --unstable flag must be provided. |