diff --git a/test/run/pool-custom-fixtures/pool/custom-pool.ts b/test/run/pool-custom-fixtures/pool/custom-pool.ts index b4e1f276cc44..31889be91456 100644 --- a/test/run/pool-custom-fixtures/pool/custom-pool.ts +++ b/test/run/pool-custom-fixtures/pool/custom-pool.ts @@ -2,7 +2,7 @@ import type { File, Test } from 'vitest' import type { ProcessPool, Vitest } from 'vitest/node' import { createMethodsRPC } from 'vitest/node' import { getTasks } from '@vitest/runner/utils' -import { relative } from 'pathe' +import { normalize, relative } from 'pathe' export default (ctx: Vitest): ProcessPool => { const options = ctx.config.poolOptions?.custom as any @@ -13,7 +13,7 @@ export default (ctx: Vitest): ProcessPool => { for await (const [project, file] of specs) { ctx.state.clearFiles(project) const methods = createMethodsRPC(project) - console.warn('[pool] running tests for', project.getName(), 'in', file.toLowerCase().replace(process.cwd().toLowerCase(), '')) + console.warn('[pool] running tests for', project.getName(), 'in', normalize(file).toLowerCase().replace(normalize(process.cwd()).toLowerCase(), '')) const path = relative(project.config.root, file) const taskFile: File = { id: `${path}${project.getName()}`,