summaryrefslogtreecommitdiff
path: root/cli/tests/integration/npm_tests.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-08-24 13:44:38 -0400
committerGitHub <noreply@github.com>2022-08-24 13:44:38 -0400
commit348291f5eccfa19fde67e16bc5d706b5f465da09 (patch)
tree30547118c514e138bcf674e8a950718b09d7c2c1 /cli/tests/integration/npm_tests.rs
parent18fcef8b294f98df5eb555fb166afafebeaed71f (diff)
fix(npm): always require --unstable flag even for esm (#15583)
Diffstat (limited to 'cli/tests/integration/npm_tests.rs')
-rw-r--r--cli/tests/integration/npm_tests.rs12
1 files changed, 10 insertions, 2 deletions
diff --git a/cli/tests/integration/npm_tests.rs b/cli/tests/integration/npm_tests.rs
index 98ab347b9..9c4b98241 100644
--- a/cli/tests/integration/npm_tests.rs
+++ b/cli/tests/integration/npm_tests.rs
@@ -10,7 +10,7 @@ use util::http_server;
// by setting the DENO_TEST_UTIL_UPDATE_NPM=1 environment variable.
itest!(esm_module {
- args: "run --allow-read npm/esm/main.js",
+ args: "run --allow-read --unstable npm/esm/main.js",
output: "npm/esm/main.out",
envs: env_vars(),
http_server: true,
@@ -19,6 +19,7 @@ itest!(esm_module {
itest!(esm_module_eval {
args_vec: vec![
"eval",
+ "--unstable",
"import chalk from 'npm:chalk@5'; console.log(chalk.green('chalk esm loads'));",
],
output: "npm/esm/main.out",
@@ -27,7 +28,7 @@ itest!(esm_module_eval {
});
itest!(esm_module_deno_test {
- args: "test --allow-read npm/esm/test.js",
+ args: "test --allow-read --unstable npm/esm/test.js",
output: "npm/esm/test.out",
envs: env_vars(),
http_server: true,
@@ -61,6 +62,13 @@ itest!(cached_only {
exit_code: 1,
});
+itest!(no_unstable {
+ args: "run npm/no_unstable/main.ts",
+ output: "npm/no_unstable/main.out",
+ envs: env_vars(),
+ exit_code: 1,
+});
+
itest!(import_map {
args: "run --allow-read --unstable --import-map npm/import_map/import_map.json npm/import_map/main.js",
output: "npm/import_map/main.out",