Skip to content

Commit b3de889

Browse files
committed
test: add test for legacy bundle in modern mode
1 parent c078633 commit b3de889

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ test('modern mode', async () => {
2525
// arrow function should be reserved in the modern build
2626
const app = await project.read(`dist/js/${files.find(f => /^app\.\w{8}\.js$/.test(f))}`)
2727
expect(app).toMatch(/=>/)
28+
const legacyApp = await project.read(`dist/js/${files.find(f => /^app-legacy\.\w{8}\.js$/.test(f))}`)
29+
expect(legacyApp).not.toMatch(/=>/)
2830

2931
// assert correct asset links
3032
const index = await project.read('dist/index.html')

0 commit comments

Comments
 (0)