From 34418884f4b57c925d3627c194482750e858ff63 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Thu, 14 Oct 2021 21:13:15 +1100 Subject: fix(cli): re-enable allowSyntheticDefaultImports for tsc (#12435) Fixes #12434 --- cli/tests/testdata/compiler_api_test.ts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'cli/tests/testdata') diff --git a/cli/tests/testdata/compiler_api_test.ts b/cli/tests/testdata/compiler_api_test.ts index b743a8612..914147f76 100644 --- a/cli/tests/testdata/compiler_api_test.ts +++ b/cli/tests/testdata/compiler_api_test.ts @@ -177,6 +177,31 @@ Deno.test({ }, }); +Deno.test({ + name: "Deno.emit() - allowSyntheticDefaultImports true by default", + async fn() { + const { diagnostics, files, ignoredOptions } = await Deno.emit( + "file:///a.ts", + { + sources: { + "file:///a.ts": `import b from "./b.js";\n`, + "file:///b.js": + `///