mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-28 18:19:02 -06:00
test: add test for legacy bundle in modern mode
This commit is contained in:
@@ -25,6 +25,8 @@ test('modern mode', async () => {
|
||||
// arrow function should be reserved in the modern build
|
||||
const app = await project.read(`dist/js/${files.find(f => /^app\.\w{8}\.js$/.test(f))}`)
|
||||
expect(app).toMatch(/=>/)
|
||||
const legacyApp = await project.read(`dist/js/${files.find(f => /^app-legacy\.\w{8}\.js$/.test(f))}`)
|
||||
expect(legacyApp).not.toMatch(/=>/)
|
||||
|
||||
// assert correct asset links
|
||||
const index = await project.read('dist/index.html')
|
||||
|
||||
Reference in New Issue
Block a user