Skip to content

Commit

Permalink
chore: fix windows test
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Feb 17, 2023
1 parent c53a961 commit 03129d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vite/src/node/ssr/__tests__/ssrLoadModule.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { fileURLToPath } from 'node:url'
import path from 'node:path'
import { expect, test } from 'vitest'
import { createServer } from '../../server'
import { normalizePath } from '../../utils'

const root = fileURLToPath(new URL('./', import.meta.url))

Expand All @@ -15,7 +16,7 @@ test('ssrLoad', async () => {
expect.assertions(1)
const server = await createDevServer()
const moduleRelativePath = '/fixtures/modules/has-invalid-import.js'
const moduleAbsolutePath = path.join(root, moduleRelativePath)
const moduleAbsolutePath = normalizePath(path.join(root, moduleRelativePath))
try {
await server.ssrLoadModule(moduleRelativePath)
} catch (e) {
Expand Down

0 comments on commit 03129d3

Please sign in to comment.