@@ -2,28 +2,24 @@ jest.setTimeout(process.env.APPVEYOR ? 80000 : 60000)
2
2
3
3
const create = require ( '@vue/cli-test-utils/createTestProject' )
4
4
5
- // temporarily disabled on AppVeyor due to upstream issue
6
- // https://github.com/cypress-io/cypress/issues/1841
7
- if ( ! process . env . APPVEYOR ) {
8
- test ( 'should work' , async ( ) => {
9
- const project = await create ( 'e2e-cypress' , {
10
- plugins : {
11
- '@vue/cli-plugin-babel' : { } ,
12
- '@vue/cli-plugin-e2e-cypress' : { }
13
- }
14
- } )
5
+ test ( 'should work' , async ( ) => {
6
+ const project = await create ( 'e2e-cypress' , {
7
+ plugins : {
8
+ '@vue/cli-plugin-babel' : { } ,
9
+ '@vue/cli-plugin-e2e-cypress' : { }
10
+ }
11
+ } )
15
12
16
- const pkg = JSON . parse ( await project . read ( 'package.json' ) )
17
- expect ( pkg . devDependencies ) . toHaveProperty ( '@cypress/webpack-preprocessor' )
13
+ const pkg = JSON . parse ( await project . read ( 'package.json' ) )
14
+ expect ( pkg . devDependencies ) . toHaveProperty ( '@cypress/webpack-preprocessor' )
18
15
19
- const config = JSON . parse ( await project . read ( 'cypress.json' ) )
20
- config . video = false
21
- await project . write ( 'cypress.json' , JSON . stringify ( config ) )
16
+ const config = JSON . parse ( await project . read ( 'cypress.json' ) )
17
+ config . video = false
18
+ await project . write ( 'cypress.json' , JSON . stringify ( config ) )
22
19
20
+ if ( process . env . CI ) {
23
21
await project . run ( `vue-cli-service test:e2e --headless` )
24
- } )
25
- } else {
26
- test ( 'should work' , ( ) => {
27
- // empty spec to avoid jest bailing
28
- } )
29
- }
22
+ } else {
23
+ await project . run ( `vue-cli-service test:e2e` )
24
+ }
25
+ } )
0 commit comments