diff options
author | Nathan Whitaker <17734409+nathanwhit@users.noreply.github.com> | 2024-08-20 07:55:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-20 14:55:47 +0000 |
commit | 5168700be669179382462214724115a3013cb58e (patch) | |
tree | f30a134722a079b4cc7b2c25a799fe11bf40c6cd /tests | |
parent | f1c58ec041a05276d9f33562a5843c0bb7fb95b3 (diff) |
feat(config): Support frozen lockfile config option in deno.json (#25100)
Closes #24544
Diffstat (limited to 'tests')
-rw-r--r-- | tests/specs/lockfile/frozen_lockfile/__test__.jsonc | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/specs/lockfile/frozen_lockfile/__test__.jsonc b/tests/specs/lockfile/frozen_lockfile/__test__.jsonc index 8faa45b4e..3036c8db5 100644 --- a/tests/specs/lockfile/frozen_lockfile/__test__.jsonc +++ b/tests/specs/lockfile/frozen_lockfile/__test__.jsonc @@ -123,6 +123,35 @@ } ] }, + + "lockfile_config": { + "steps": [ + { + "args": [ + "eval", + "Deno.writeTextFileSync('deno.json', JSON.stringify({ lock: { frozen: true }, ...JSON.parse(Deno.readTextFileSync('deno.json')) }))" + ], + "output": "" + }, + { + "args": "cache --frozen=false add.ts", + "output": "[WILDCARD]" + }, + { + // sub.ts imports from an npm package + // that's not in the lockfile + "args": "run sub.ts", + "output": "frozen_new_dep_run.out", + "exitCode": 1 + }, + { + "args": "cache sub.ts", + "output": "frozen_new_dep_cache.out", + "exitCode": 1 + } + ] + }, + "non_analyzable_dynamic_npm": { "steps": [ { |