Skip to content

Commit

Permalink
test: fix windows pathing
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Nov 15, 2024
1 parent 0f6c763 commit 1eb3dcc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vite/src/node/__tests__/inlineImport.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { resolve } from 'node:path'
import { describe, expect, test } from 'vitest'
import { inlineImport } from '../ssr/inlineImport'
import { slash } from '../../shared/utils'

describe('importing files using inlined environment', () => {
const fixture = (name: string) =>
Expand Down Expand Up @@ -35,6 +36,6 @@ describe('importing files using inlined environment', () => {
},
],
})
expect(dependencies).toEqual([fixture('plugin.ts')])
expect(dependencies).toEqual([slash(fixture('plugin.ts'))])
})
})

0 comments on commit 1eb3dcc

Please sign in to comment.