Skip to content

Commit 85475de

Browse files
committed
Fix node:test not part of builtinModules
1 parent 770b3ec commit 85475de

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ const builtins = {
9696
)
9797
}
9898

99+
// node:test is currently not part of builtinModules... and may well never be
100+
// (see https://github.com/nodejs/node/issues/42785)
101+
builtins.all.add('node:test')
102+
builtins.alwaysPrefixed.add('node:test')
103+
99104
const workspaceRootFiles = new Set([
100105
'pnpm-workspace.yaml', // pnpm
101106
'lerna.json', // Lerna

0 commit comments

Comments
 (0)