From 0c47cd67850e4c195212c8edfcb3a62b8435ed3a Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sat, 25 Apr 2020 09:31:54 -0400 Subject: introduce unstable flag, make a few things unstable (#4892) --- cli/tests/integration_tests.rs | 7 +++++++ cli/tests/std_tests.rs | 1 + cli/tests/unstable.js | 2 ++ cli/tests/unstable.out | 1 + 4 files changed, 11 insertions(+) create mode 100644 cli/tests/unstable.js create mode 100644 cli/tests/unstable.out (limited to 'cli/tests') 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. -- cgit v1.2.3