Skip to content

Commit bcc89b9

Browse files
committed
chore: cleanup
1 parent 58adc9b commit bcc89b9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/vitest/src/node/workspace.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ export class WorkspaceProject {
332332

333333
filterFiles(testFiles: string[], filters: string[], dir: string) {
334334
if (filters.length && process.platform === 'win32') {
335-
filters = filters.map(f => path.toNamespacedPath(f))
335+
filters = filters.map(f => slash(f))
336336
}
337337

338338
if (filters.length) {

test/benchmark/test/reporter.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { runVitest } from '../../test-utils'
55
it('summary', async () => {
66
const root = pathe.join(import.meta.dirname, '../fixtures/reporter')
77
const result = await runVitest({ root }, ['summary.bench.ts'], 'benchmark')
8+
expect(result.stderr).toBe('')
89
expect(result.stdout).not.toContain('NaNx')
910
expect(result.stdout.split('BENCH Summary')[1].replaceAll(/[0-9.]+x/g, '(?)')).toMatchSnapshot()
1011
})

0 commit comments

Comments
 (0)