summaryrefslogtreecommitdiff
path: root/cli/tests/integration
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-02-23 17:20:23 -0500
committerGitHub <noreply@github.com>2023-02-23 23:20:23 +0100
commite57b38f8b216bc8c0c1c22c10ab5c9ce2560c58a (patch)
treea83e2dfd1c2b0af6bfbd68e3e54b0078a1915366 /cli/tests/integration
parentda781280b8422b4116473b366fb7d207909a31da (diff)
fix(npm): allow resolving from package.json when an import map exists (#17905)
Diffstat (limited to 'cli/tests/integration')
-rw-r--r--cli/tests/integration/check_tests.rs10
-rw-r--r--cli/tests/integration/run_tests.rs9
2 files changed, 19 insertions, 0 deletions
diff --git a/cli/tests/integration/check_tests.rs b/cli/tests/integration/check_tests.rs
index 021a536c4..1273fbdce 100644
--- a/cli/tests/integration/check_tests.rs
+++ b/cli/tests/integration/check_tests.rs
@@ -251,3 +251,13 @@ itest!(package_json_fail_check {
copy_temp_dir: Some("package_json/basic"),
exit_code: 1,
});
+
+itest!(package_json_with_deno_json {
+ args: "check --quiet main.ts",
+ output: "package_json/deno_json/main.check.out",
+ cwd: Some("package_json/deno_json/"),
+ copy_temp_dir: Some("package_json/deno_json/"),
+ envs: env_vars_for_npm_tests_no_sync_download(),
+ http_server: true,
+ exit_code: 1,
+});
diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs
index d89142c21..4b7869ef6 100644
--- a/cli/tests/integration/run_tests.rs
+++ b/cli/tests/integration/run_tests.rs
@@ -2793,6 +2793,15 @@ itest!(package_json_auto_discovered_for_npm_binary {
http_server: true,
});
+itest!(package_json_with_deno_json {
+ args: "run --quiet -A main.ts",
+ output: "package_json/deno_json/main.out",
+ cwd: Some("package_json/deno_json/"),
+ copy_temp_dir: Some("package_json/deno_json/"),
+ envs: env_vars_for_npm_tests_no_sync_download(),
+ http_server: true,
+});
+
itest!(wasm_streaming_panic_test {
args: "run run/wasm_streaming_panic_test.js",
output: "run/wasm_streaming_panic_test.js.out",