We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9324766 commit f343a77Copy full SHA for f343a77
src/index.ts
@@ -1,3 +1,4 @@
1
+import { pathToFileURL } from 'node:url'
2
import { isMainThread, Worker, workerData } from 'node:worker_threads'
3
import {
4
defaultOptions,
@@ -43,7 +44,7 @@ function scheduleNextTest(context: Context): void {
43
44
function run(context: Context): void {
45
const name = context.tests[context.current][0]
46
const workerData = {
- path: process.argv[1],
47
+ path: pathToFileURL(process.argv[1]).toString(),
48
index: context.current,
49
iterations: context.iterations,
50
warmup: context.warmup,
0 commit comments