summaryrefslogtreecommitdiff
path: root/tests/integration/run_tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/run_tests.rs')
-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()