test: fix css-dynamic-import playground flakiness (#11173)

This commit is contained in:
翠 / green 2022-12-04 20:59:15 +09:00 committed by GitHub
parent 65bcccfe9f
commit f589579f96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -12,7 +12,7 @@ const getConfig = (base: string): InlineConfig => ({
base,
root: rootDir,
logLevel: 'silent',
preview: { port: ports['css/dynamic-import'] },
server: { port: ports['css/dynamic-import'] },
build: { assetsInlineLimit: 0 },
})
@ -98,7 +98,6 @@ baseOptions.forEach(({ base, label }) => {
])
})
},
{ retry: 3 },
)
test.runIf(isServe)(
@ -118,6 +117,5 @@ baseOptions.forEach(({ base, label }) => {
])
})
},
{ retry: 3 },
)
})

View File

@ -0,0 +1,5 @@
{
"name": "@vitejs/test-css-dynamic-import",
"private": true,
"version": "0.0.0"
}