Skip to content

Commit

Permalink
Support node v21.5.0 (#5)
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <hello@matteocollina.com>
  • Loading branch information
mcollina authored Jan 2, 2024
1 parent 87be751 commit e885f52
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand All @@ -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: {
Expand Down

0 comments on commit e885f52

Please sign in to comment.