diff --git a/tests/specs/cache/package_json/__test__.jsonc b/tests/specs/cache/package_json/__test__.jsonc index 803d5ef09aa01d..27fd3f9bab1fb1 100644 --- a/tests/specs/cache/package_json/__test__.jsonc +++ b/tests/specs/cache/package_json/__test__.jsonc @@ -1,7 +1,13 @@ { "tempDir": true, - // TODO(2.0): decide if this test should be fixed or removed - "ignore": true, - "args": "cache main.ts", - "output": "main.cache.out" + "steps": [ + { + "args": "cache main.ts", + "output": "main.cache.out" + }, + { + "args": "eval console.log(Deno.readTextFileSync('deno.lock').trim())", + "output": "deno.lock.out" + } + ] } diff --git a/tests/specs/cache/package_json/deno.json b/tests/specs/cache/package_json/deno.json new file mode 100644 index 00000000000000..38af4024b07cb4 --- /dev/null +++ b/tests/specs/cache/package_json/deno.json @@ -0,0 +1,3 @@ +{ + "nodeModulesDir": "none" +} diff --git a/tests/specs/cache/package_json/deno.lock.out b/tests/specs/cache/package_json/deno.lock.out new file mode 100644 index 00000000000000..d390a59c1312ba --- /dev/null +++ b/tests/specs/cache/package_json/deno.lock.out @@ -0,0 +1,16 @@ +{ + "version": "4", + "specifiers": { + "npm:@denotest/esm-basic@*": "1.0.0" + }, + "npm": { + "@denotest/esm-basic@1.0.0": [WILDCARD] + }, + "workspace": { + "packageJson": { + "dependencies": [ + "npm:@denotest/esm-basic@*" + ] + } + } +} diff --git a/tests/specs/cache/package_json/main.cache.out b/tests/specs/cache/package_json/main.cache.out index b8114c12a01188..f5a1cd15ee026e 100644 --- a/tests/specs/cache/package_json/main.cache.out +++ b/tests/specs/cache/package_json/main.cache.out @@ -1,3 +1,2 @@ Download http://localhost:4260/@denotest/esm-basic Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz -Initialize @denotest/esm-basic@1.0.0