mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-03-20 18:11:07 -05:00
BREAKING CHANGE: `cli-plugin-unit-jest` and `cli-plugin-unit-mocha` now register "test:unit" command and script instead of "test"; `cli-plugin-e2e-cypress` now register "test:e2e" with optional `--headless` flag instead of "e2e" and "e2e:open"; `cli-plugin-e2e-nightwatch` now register "test:e2e" instead of "e2e". close #876, close #878
19 lines
525 B
JavaScript
19 lines
525 B
JavaScript
jest.setTimeout(process.env.APPVEYOR ? 60000 : 30000)
|
|
|
|
const create = require('@vue/cli-test-utils/createTestProject')
|
|
|
|
test('should work', async () => {
|
|
const project = await create('e2e-cypress', {
|
|
plugins: {
|
|
'@vue/cli-plugin-babel': {},
|
|
'@vue/cli-plugin-e2e-cypress': {}
|
|
}
|
|
})
|
|
|
|
const config = JSON.parse(await project.read('cypress.json'))
|
|
config.videoRecording = false
|
|
await project.write('cypress.json', JSON.stringify(config))
|
|
|
|
await project.run(`vue-cli-service test:e2e --headless`)
|
|
})
|