Skip to content

Commit

Permalink
test: fix case failing in windows (#4245)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunqing authored Oct 13, 2023
1 parent edddc8f commit 6451bc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/setup/tests/console-setup.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { normalize } from 'node:path'
import { describe, expect, test } from 'vitest'

import { runVitest } from '../../test-utils'

async function run() {
Expand All @@ -12,7 +12,7 @@ async function run() {
describe('setup files console', () => {
test('print stdout and stderr correctly', async () => {
const { stdout, stderr } = await run()
const filepath = 'setupFiles/console-setup.ts'
const filepath = normalize('setupFiles/console-setup.ts')
expect(stdout).toContain(`stdout | ${filepath}`)
expect(stderr).toContain(`stderr | ${filepath}`)
})
Expand Down

0 comments on commit 6451bc6

Please sign in to comment.