From e7fc7d7151fbfea07f0738f61c1932023ad761da Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Sun, 22 Nov 2020 23:20:32 +0000 Subject: fix(cli/tsc): allow non-standard extensions on imports (#8464) --- cli/tests/075_import_local_query_hash.ts | 2 ++ cli/tests/075_import_local_query_hash.ts.out | 2 ++ cli/tests/integration_tests.rs | 5 +++++ 3 files changed, 9 insertions(+) create mode 100644 cli/tests/075_import_local_query_hash.ts create mode 100644 cli/tests/075_import_local_query_hash.ts.out (limited to 'cli/tests') diff --git a/cli/tests/075_import_local_query_hash.ts b/cli/tests/075_import_local_query_hash.ts new file mode 100644 index 000000000..99c7ceab4 --- /dev/null +++ b/cli/tests/075_import_local_query_hash.ts @@ -0,0 +1,2 @@ +import "./001_hello.js?a=b#c"; +import "./002_hello.ts?a=b#c"; diff --git a/cli/tests/075_import_local_query_hash.ts.out b/cli/tests/075_import_local_query_hash.ts.out new file mode 100644 index 000000000..340777742 --- /dev/null +++ b/cli/tests/075_import_local_query_hash.ts.out @@ -0,0 +1,2 @@ +[WILDCARD]Hello World +Hello World diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index 512fceee3..43b9e091b 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -2418,6 +2418,11 @@ itest!(_074_worker_nested_error { exit_code: 1, }); +itest!(_075_import_local_query_hash { + args: "run 075_import_local_query_hash.ts", + output: "075_import_local_query_hash.ts.out", +}); + itest!(js_import_detect { args: "run --quiet --reload js_import_detect.ts", output: "js_import_detect.ts.out", -- cgit v1.2.3