diff options
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()); |
