diff --git a/lib/run.js b/lib/run.js index 38bfdef..d330b0f 100644 --- a/lib/run.js +++ b/lib/run.js @@ -17,6 +17,10 @@ function deferred () { } export default async function runWithTypeScript (config) { + // This is a hack to override + // https://github.com/nodejs/node/commit/d5c9adf3df + delete process.env.NODE_TEST_CONTEXT + const { cwd } = config let pushable = [] const tsconfigPath = await findUp('tsconfig.json', { cwd }) @@ -36,6 +40,7 @@ export default async function runWithTypeScript (config) { if (!config.watch) { const start = Date.now() await execa('node', [tscPath], { cwd: dirname(tsconfigPath) }) + process.stdout.write(`TypeScript compilation complete (${Date.now() - start}ms)\n`) pushable.push({ type: 'test:diagnostic', data: {