Skip to content

Commit f343a77

Browse files
committed
fix: Fixed Windows compatibility.
1 parent 9324766 commit f343a77

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { pathToFileURL } from 'node:url'
12
import { isMainThread, Worker, workerData } from 'node:worker_threads'
23
import {
34
defaultOptions,
@@ -43,7 +44,7 @@ function scheduleNextTest(context: Context): void {
4344
function run(context: Context): void {
4445
const name = context.tests[context.current][0]
4546
const workerData = {
46-
path: process.argv[1],
47+
path: pathToFileURL(process.argv[1]).toString(),
4748
index: context.current,
4849
iterations: context.iterations,
4950
warmup: context.warmup,

0 commit comments

Comments
 (0)