summaryrefslogtreecommitdiff
path: root/cli/tests/integration/check_tests.rs
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/check_tests.rs
parentda781280b8422b4116473b366fb7d207909a31da (diff)
fix(npm): allow resolving from package.json when an import map exists (#17905)
Diffstat (limited to 'cli/tests/integration/check_tests.rs')
-rw-r--r--cli/tests/integration/check_tests.rs10
1 files changed, 10 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,
+});