Skip to content

Commit

Permalink
chore: test
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Aug 3, 2023
1 parent c41f03d commit 9101921
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vitest/src/runtime/vm/vite-executor.ts
@@ -1,4 +1,5 @@
import type vm from 'node:vm'
import { pathToFileURL } from 'node:url'
import { normalize } from 'pathe'
import { CSS_LANGS_RE, KNOWN_ASSET_RE } from 'vite-node/constants'
import { toArray } from 'vite-node/utils'
Expand All @@ -15,7 +16,7 @@ interface ViteExecutorOptions {
}

const CLIENT_ID = '/@vite/client'
const CLIENT_FILE = `file://${CLIENT_ID}`
const CLIENT_FILE = pathToFileURL(CLIENT_ID).href

export class ViteExecutor {
private esm: EsmExecutor
Expand Down

0 comments on commit 9101921

Please sign in to comment.