diff --git a/test/data/jsr_with_path_in_import_map/deno.json b/test/data/jsr_with_path_in_import_map/deno.json new file mode 100644 index 00000000..5d128d6b --- /dev/null +++ b/test/data/jsr_with_path_in_import_map/deno.json @@ -0,0 +1,5 @@ +{ + "imports": { + "@std/testing": "jsr:@std/testing@0.210.0" + } +} diff --git a/test/data/jsr_with_path_in_import_map/mod.ts b/test/data/jsr_with_path_in_import_map/mod.ts new file mode 100644 index 00000000..df2a9225 --- /dev/null +++ b/test/data/jsr_with_path_in_import_map/mod.ts @@ -0,0 +1 @@ +import { describe } from "@std/testing/bdd"; diff --git a/test/snapshots/update_test.ts.snap b/test/snapshots/update_test.ts.snap index a8d55b80..a35323a0 100644 --- a/test/snapshots/update_test.ts.snap +++ b/test/snapshots/update_test.ts.snap @@ -96,6 +96,29 @@ snapshot[`collect - lockfile_not_importable - mod.ts 2`] = ` ] `; +snapshot[`collect - jsr_with_path_in_import_map - deno.json 1`] = ` +[ + { + code: { + span: undefined, + specifier: "jsr:@std/testing@0.210.0", + }, + from: { + name: "@std/testing", + path: "", + protocol: "jsr:", + version: "0.210.0", + }, + to: { + name: "@std/testing", + path: "", + protocol: "jsr:", + version: "123.456.789", + }, + }, +] +`; + snapshot[`collect - multiple_imports.ts 1`] = ` [ {