From c14436a424449d845a769a70ca7bc3d313201482 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 9 Sep 2020 13:37:22 +0200 Subject: fix(tsc): config resolution using relative paths (#7392) --- cli/tests/compiler_api_test.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'cli/tests/compiler_api_test.ts') diff --git a/cli/tests/compiler_api_test.ts b/cli/tests/compiler_api_test.ts index 311dae8fd..b4a2f81ef 100644 --- a/cli/tests/compiler_api_test.ts +++ b/cli/tests/compiler_api_test.ts @@ -75,6 +75,24 @@ Deno.test({ }, }); +Deno.test({ + name: "Deno.compile() - pass outDir in compiler options", + async fn() { + const [diagnostics, actual] = await Deno.compile( + "src/foo.ts", + { + "src/foo.ts": "console.log('Hello world')", + }, + { + outDir: "./lib", + }, + ); + assert(diagnostics == null); + assert(actual); + assertEquals(Object.keys(actual), ["lib/foo.js.map", "lib/foo.js"]); + }, +}); + Deno.test({ name: "Deno.compile() - properly handles .d.ts files", async fn() { -- cgit v1.2.3