From cb11d6f14a3f3001434632af598e19c42f232c98 Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Tue, 2 Jan 2024 21:28:13 +0100 Subject: [PATCH] Support node v21.5.0 Signed-off-by: Matteo Collina --- lib/run.js | 5 +++++ 1 file changed, 5 insertions(+) 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: {