Skip to content

Commit c455a42

Browse files
committed
ci: fix async wc spec
1 parent da833d6 commit c455a42

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

packages/@vue/cli-service/__tests__/buildWcAsync.spec.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ test('build as wc in async mode', async () => {
1919
expect(project.has('dist/build-wc-async.min.js')).toBe(true)
2020

2121
// code-split chunks
22-
expect(project.has('dist/build-wc-async.0.js')).toBe(true)
23-
expect(project.has('dist/build-wc-async.0.min.js')).toBe(true)
2422
expect(project.has('dist/build-wc-async.1.js')).toBe(true)
2523
expect(project.has('dist/build-wc-async.1.min.js')).toBe(true)
24+
expect(project.has('dist/build-wc-async.2.js')).toBe(true)
25+
expect(project.has('dist/build-wc-async.2.min.js')).toBe(true)
2626

2727
const port = await portfinder.getPortPromise()
2828
server = createServer({ root: path.join(project.dir, 'dist') })
@@ -60,6 +60,10 @@ test('build as wc in async mode', async () => {
6060
})
6161

6262
afterAll(async () => {
63-
await browser.close()
64-
server.close()
63+
if (browser) {
64+
await browser.close()
65+
}
66+
if (server) {
67+
server.close()
68+
}
6569
})

0 commit comments

Comments
 (0)