@@ -2,28 +2,24 @@ jest.setTimeout(process.env.APPVEYOR ? 80000 : 60000)
22
33const create = require ( '@vue/cli-test-utils/createTestProject' )
44
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+ } )
1512
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' )
1815
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 ) )
2219
20+ if ( process . env . CI ) {
2321 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