mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
fix(test-utils): workaround playwright dynamic import issue with vite (#3489)
This commit is contained in:
parent
ecee32988d
commit
66605971a8
@ -7,7 +7,9 @@ export async function createBrowser () {
|
|||||||
|
|
||||||
let playwright: typeof import('playwright')
|
let playwright: typeof import('playwright')
|
||||||
try {
|
try {
|
||||||
playwright = await import('playwright')
|
// Workround for https://github.com/nuxt/framework/issues/3470
|
||||||
|
// TODO: Remove when upstream issue resolved
|
||||||
|
playwright = await import(String('playwright'))
|
||||||
} catch {
|
} catch {
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
throw new Error(`
|
throw new Error(`
|
||||||
|
Loading…
Reference in New Issue
Block a user