summaryrefslogtreecommitdiff
path: root/tests/integration
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-10-04 20:55:03 +0100
committerGitHub <noreply@github.com>2024-10-04 20:55:03 +0100
commitf288730c38bd4f13b464a9bd67eb901a8c790bc4 (patch)
treecff4903b5c1b18f28acb80134225d08a401882d9 /tests/integration
parentdd8cbf5e29d9949e3adac9b9d8ce5fb73b5b0ad0 (diff)
chore: enable lock_deno_json_package_json_deps (#26029)
Diffstat (limited to 'tests/integration')
-rw-r--r--tests/integration/run_tests.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/integration/run_tests.rs b/tests/integration/run_tests.rs
index b3ad15c81..db83acb19 100644
--- a/tests/integration/run_tests.rs
+++ b/tests/integration/run_tests.rs
@@ -926,9 +926,7 @@ fn lock_redirects() {
);
}
-// TODO(2.0): this should be rewritten to a spec test and first run `deno install`
#[test]
-#[ignore]
fn lock_deno_json_package_json_deps() {
let context = TestContextBuilder::new()
.use_temp_cwd()
@@ -942,6 +940,7 @@ fn lock_deno_json_package_json_deps() {
// add a jsr and npm dependency
deno_json.write_json(&json!({
+ "nodeModulesDir": "auto",
"imports": {
"esm-basic": "npm:@denotest/esm-basic",
"module_graph": "jsr:@denotest/module-graph@1.4",
@@ -984,6 +983,7 @@ fn lock_deno_json_package_json_deps() {
// now remove the npm dependency from the deno.json and move
// it to a package.json that uses an alias
deno_json.write_json(&json!({
+ "nodeModulesDir": "auto",
"imports": {
"module_graph": "jsr:@denotest/module-graph@1.4",
}
@@ -1060,7 +1060,9 @@ fn lock_deno_json_package_json_deps() {
}));
// now remove the deps from the deno.json
- deno_json.write("{}");
+ deno_json.write_json(&json!({
+ "nodeModulesDir": "auto"
+ }));
main_ts.write("");
context
.new_command()