mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-04-23 04:58:56 -05:00
85b10896b3
As it always fails for some unknown reason.
26 lines
776 B
JavaScript
26 lines
776 B
JavaScript
jest.setTimeout(process.env.APPVEYOR ? 120000 : 60000)
|
|
|
|
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 pkg = JSON.parse(await project.read('package.json'))
|
|
expect(pkg.devDependencies).toHaveProperty('@cypress/webpack-preprocessor')
|
|
|
|
const config = JSON.parse(await project.read('cypress.json'))
|
|
config.video = false
|
|
await project.write('cypress.json', JSON.stringify(config))
|
|
|
|
if (!process.env.CI) {
|
|
await project.run(`vue-cli-service test:e2e`)
|
|
} else if (!process.env.APPVEYOR) {
|
|
await project.run(`vue-cli-service test:e2e --headless`)
|
|
}
|
|
})
|