mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-24 16:18:57 -06:00
ci: fix async wc spec
This commit is contained in:
@@ -19,10 +19,10 @@ test('build as wc in async mode', async () => {
|
||||
expect(project.has('dist/build-wc-async.min.js')).toBe(true)
|
||||
|
||||
// code-split chunks
|
||||
expect(project.has('dist/build-wc-async.0.js')).toBe(true)
|
||||
expect(project.has('dist/build-wc-async.0.min.js')).toBe(true)
|
||||
expect(project.has('dist/build-wc-async.1.js')).toBe(true)
|
||||
expect(project.has('dist/build-wc-async.1.min.js')).toBe(true)
|
||||
expect(project.has('dist/build-wc-async.2.js')).toBe(true)
|
||||
expect(project.has('dist/build-wc-async.2.min.js')).toBe(true)
|
||||
|
||||
const port = await portfinder.getPortPromise()
|
||||
server = createServer({ root: path.join(project.dir, 'dist') })
|
||||
@@ -60,6 +60,10 @@ test('build as wc in async mode', async () => {
|
||||
})
|
||||
|
||||
afterAll(async () => {
|
||||
await browser.close()
|
||||
server.close()
|
||||
if (browser) {
|
||||
await browser.close()
|
||||
}
|
||||
if (server) {
|
||||
server.close()
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user