mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +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')
|
||||
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 {
|
||||
/* istanbul ignore next */
|
||||
throw new Error(`
|
||||
|
Loading…
Reference in New Issue
Block a user