diff --git a/cli/tests/integration/bundle_tests.rs b/cli/tests/integration/bundle_tests.rs index 4e68af0b1d..9010ec9b19 100644 --- a/cli/tests/integration/bundle_tests.rs +++ b/cli/tests/integration/bundle_tests.rs @@ -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", +}); diff --git a/cli/tests/testdata/bundle/file_tests-fixture16.ts b/cli/tests/testdata/bundle/file_tests-fixture16.ts new file mode 100644 index 0000000000..5d0b05e92a --- /dev/null +++ b/cli/tests/testdata/bundle/file_tests-fixture16.ts @@ -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); diff --git a/cli/tests/testdata/bundle/file_tests-fixture16_2.ts b/cli/tests/testdata/bundle/file_tests-fixture16_2.ts new file mode 100644 index 0000000000..7115949c9d --- /dev/null +++ b/cli/tests/testdata/bundle/file_tests-fixture16_2.ts @@ -0,0 +1,2 @@ +// todo(dsherret): delete this and use ./subdir/a.ts in the file once fixtures are restored +export const a = "a"; diff --git a/cli/tests/testdata/bundle/fixture16.out b/cli/tests/testdata/bundle/fixture16.out new file mode 100644 index 0000000000..5e21c2a718 --- /dev/null +++ b/cli/tests/testdata/bundle/fixture16.out @@ -0,0 +1,6 @@ +[WILDCARD] +const a = "a"; +export { a as test1 }; +export { a as test2 }; +console.log(a); +