diff --git a/tests/003_relative_import.ts b/tests/003_relative_import.ts new file mode 100644 index 0000000000..01d5d7faac --- /dev/null +++ b/tests/003_relative_import.ts @@ -0,0 +1,3 @@ +import { printHello } from "./subdir/print_hello.ts"; + +printHello(); diff --git a/tests/003_relative_import.ts.out b/tests/003_relative_import.ts.out new file mode 100644 index 0000000000..e965047ad7 --- /dev/null +++ b/tests/003_relative_import.ts.out @@ -0,0 +1 @@ +Hello diff --git a/tests/subdir/print_hello.ts b/tests/subdir/print_hello.ts new file mode 100644 index 0000000000..7ecce50405 --- /dev/null +++ b/tests/subdir/print_hello.ts @@ -0,0 +1,3 @@ +export function printHello(): void { + console.log("Hello"); +}