Skip to content

Commit

Permalink
chore: normalize test path
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Nov 18, 2023
1 parent 0e0f517 commit 1ae44c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/run/pool-custom-fixtures/pool/custom-pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()}`,
Expand Down

0 comments on commit 1ae44c9

Please sign in to comment.