diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2024-08-26 19:01:50 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-26 23:01:50 +0000 |
| commit | e13230226fe91498b3a5f28a8de6edbe4f164944 (patch) | |
| tree | 680687d66cb0725601008bed14fa7c2c8be2054c /tests/specs/lockfile/no_declaration_files | |
| parent | ba58628601057c6f996cbad287fcfbe353872368 (diff) | |
feat: lockfile v4 by default (#25165)
This won't be fully stabilized until 2.0 is released.
Diffstat (limited to 'tests/specs/lockfile/no_declaration_files')
4 files changed, 25 insertions, 0 deletions
diff --git a/tests/specs/lockfile/no_declaration_files/__test__.jsonc b/tests/specs/lockfile/no_declaration_files/__test__.jsonc new file mode 100644 index 000000000..8bbb55825 --- /dev/null +++ b/tests/specs/lockfile/no_declaration_files/__test__.jsonc @@ -0,0 +1,13 @@ +{ + "tempDir": true, + "steps": [{ + "args": "cache --lock --lock-write main.ts", + "output": "main.cache.out" + }, { + "args": [ + "eval", + "console.log(Deno.readTextFileSync('deno.lock').trim())" + ], + "output": "deno.lock.out" + }] +} diff --git a/tests/specs/lockfile/no_declaration_files/deno.lock.out b/tests/specs/lockfile/no_declaration_files/deno.lock.out new file mode 100644 index 000000000..3066e9b15 --- /dev/null +++ b/tests/specs/lockfile/no_declaration_files/deno.lock.out @@ -0,0 +1,6 @@ +{ + "version": "4", + "remote": { + "http://localhost:4545/lockfile/no_dts/mod.js": "3f576f37a301d298c3032eb1835240bd83f3762db26fc1d358c5d67088d6ffc8" + } +} diff --git a/tests/specs/lockfile/no_declaration_files/main.cache.out b/tests/specs/lockfile/no_declaration_files/main.cache.out new file mode 100644 index 000000000..84e728d66 --- /dev/null +++ b/tests/specs/lockfile/no_declaration_files/main.cache.out @@ -0,0 +1,3 @@ +Warning "--lock-write" flag is deprecated and will be removed in Deno 2. +Download http://localhost:4545/lockfile/no_dts/mod.js +Download http://localhost:4545/lockfile/no_dts/mod.d.ts diff --git a/tests/specs/lockfile/no_declaration_files/main.ts b/tests/specs/lockfile/no_declaration_files/main.ts new file mode 100644 index 000000000..7596e1e1a --- /dev/null +++ b/tests/specs/lockfile/no_declaration_files/main.ts @@ -0,0 +1,3 @@ +import { test } from "http://localhost:4545/lockfile/no_dts/mod.js"; + +console.log(test()); |
