Skip to content

Commit 47e47cf

Browse files
authored
fix: node test runner test case
1 parent d15cbe0 commit 47e47cf

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/ts-runner.spec.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,11 @@ test(TsRunner.Node, async () => {
139139

140140
if (nodeVersion < STRIP_TYPES_SUPPORTED_NODE_VERSION) {
141141
// eslint-disable-next-line jest/no-conditional-expect
142-
expect(() => createSyncFn<AsyncWorkerFn>(workerMtsPath)).toThrow(
143-
'type stripping is not supported in this node version',
144-
)
142+
expect(() =>
143+
createSyncFn<AsyncWorkerFn>(workerMtsPath, {
144+
tsRunner: TsRunner.Node,
145+
}),
146+
).toThrow('type stripping is not supported in this node version')
145147
return
146148
}
147149

0 commit comments

Comments
 (0)