mirror of
https://github.com/denoland/deno.git
synced 2025-01-03 12:58:54 -05:00
chore: test for bundling export specifier with alias (#12421)
This commit is contained in:
parent
d5a7a6d575
commit
43a63530ac
4 changed files with 19 additions and 0 deletions
|
@ -373,3 +373,8 @@ itest!(ts_decorators_bundle {
|
|||
args: "bundle ts_decorators_bundle.ts",
|
||||
output: "ts_decorators_bundle.out",
|
||||
});
|
||||
|
||||
itest!(bundle_export_specifier_with_alias {
|
||||
args: "bundle bundle/file_tests-fixture16.ts",
|
||||
output: "bundle/fixture16.out",
|
||||
});
|
||||
|
|
6
cli/tests/testdata/bundle/file_tests-fixture16.ts
vendored
Normal file
6
cli/tests/testdata/bundle/file_tests-fixture16.ts
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
// todo(dsherret): use ./subdir/a.ts once fixtures are restored
|
||||
export { a as test1 } from "./file_tests-fixture16_2.ts";
|
||||
export { a as test2 } from "./file_tests-fixture16_2.ts";
|
||||
import { a } from "./file_tests-fixture16_2.ts";
|
||||
|
||||
console.log(a);
|
2
cli/tests/testdata/bundle/file_tests-fixture16_2.ts
vendored
Normal file
2
cli/tests/testdata/bundle/file_tests-fixture16_2.ts
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
// todo(dsherret): delete this and use ./subdir/a.ts in the file once fixtures are restored
|
||||
export const a = "a";
|
6
cli/tests/testdata/bundle/fixture16.out
vendored
Normal file
6
cli/tests/testdata/bundle/fixture16.out
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
[WILDCARD]
|
||||
const a = "a";
|
||||
export { a as test1 };
|
||||
export { a as test2 };
|
||||
console.log(a);
|
||||
|
Loading…
Reference in a new issue