Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
poyoho committed Aug 19, 2022
1 parent fdcf83b commit 29fa12a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/vite/src/node/__tests__/utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
getPotentialTsSrcPaths,
injectQuery,
isWindows,
normalizePath,
resolveHostname
} from '../utils'

Expand Down Expand Up @@ -39,7 +40,9 @@ describe('injectQuery', () => {
`${process.cwd().slice(1)}/file:/usr/vite/%20a%20\\?direct`
)
: // D:/a/vite/vite/file:/usr/vite/%20a%20?direct
new RegExp(`${process.cwd()}/file:/usr/vite/%20a%20\\?direct`)
new RegExp(
`${normalizePath(process.cwd())}/file:/usr/vite/%20a%20\\?direct`
)
)
})

Expand Down

0 comments on commit 29fa12a

Please sign in to comment.