diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-07-30 16:46:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-30 16:46:15 -0400 |
commit | fe884c557a76fd288f7457aa433052f65be70c81 (patch) | |
tree | 2e1c114eb128ce1baa1d7c8dc145423b8de86af7 /tests/specs | |
parent | 7a3810195de532bf360afcbf85a0d9cf6ef662be (diff) |
fix(compile/windows): handle cjs re-export of relative path with parent component (#24795)
Closes https://github.com/denoland/deno/issues/24785
Diffstat (limited to 'tests/specs')
3 files changed, 25 insertions, 0 deletions
diff --git a/tests/specs/compile/npm_cjs_reexport_relative_parent_component/__test__.jsonc b/tests/specs/compile/npm_cjs_reexport_relative_parent_component/__test__.jsonc new file mode 100644 index 000000000..be2bbd1e4 --- /dev/null +++ b/tests/specs/compile/npm_cjs_reexport_relative_parent_component/__test__.jsonc @@ -0,0 +1,22 @@ +{ + "tempDir": true, + "steps": [{ + "if": "unix", + "args": "compile --output main main.ts", + "output": "[WILDCARD]" + }, { + "if": "unix", + "commandName": "./main", + "args": [], + "output": "main.out" + }, { + "if": "windows", + "args": "compile --output main.exe main.ts", + "output": "[WILDCARD]" + }, { + "if": "windows", + "commandName": "./main.exe", + "args": [], + "output": "main.out" + }] +} diff --git a/tests/specs/compile/npm_cjs_reexport_relative_parent_component/main.out b/tests/specs/compile/npm_cjs_reexport_relative_parent_component/main.out new file mode 100644 index 000000000..ed3193f8d --- /dev/null +++ b/tests/specs/compile/npm_cjs_reexport_relative_parent_component/main.out @@ -0,0 +1 @@ +Hi. diff --git a/tests/specs/compile/npm_cjs_reexport_relative_parent_component/main.ts b/tests/specs/compile/npm_cjs_reexport_relative_parent_component/main.ts new file mode 100644 index 000000000..c2935aeed --- /dev/null +++ b/tests/specs/compile/npm_cjs_reexport_relative_parent_component/main.ts @@ -0,0 +1,2 @@ +import { hello } from "npm:@denotest/cjs-reexport-relative-parent"; +hello.sayHello(); |