File tree 4 files changed +12
-16
lines changed
packages/@vue/cli-plugin-e2e-cypress
template/tests/e2e/plugins
4 files changed +12
-16
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,6 @@ test('should work', async () => {
14
14
}
15
15
} )
16
16
17
- const pkg = JSON . parse ( await project . read ( 'package.json' ) )
18
- expect ( pkg . devDependencies ) . toHaveProperty ( '@cypress/webpack-preprocessor' )
19
-
20
17
const config = JSON . parse ( await project . read ( 'cypress.json' ) )
21
18
config . video = false
22
19
await project . write ( 'cypress.json' , JSON . stringify ( config ) )
Original file line number Diff line number Diff line change @@ -5,9 +5,6 @@ module.exports = api => {
5
5
} )
6
6
7
7
api . extendPackage ( {
8
- devDependencies : {
9
- '@cypress/webpack-preprocessor' : '^3.0.0'
10
- } ,
11
8
scripts : {
12
9
'test:e2e' : 'vue-cli-service test:e2e'
13
10
}
Original file line number Diff line number Diff line change 1
1
// https://docs.cypress.io/guides/guides/plugins-guide.html
2
- /* eslint-disable import/no-extraneous-dependencies, global-require */
3
- const webpack = require ( '@cypress/webpack-preprocessor' )
2
+
3
+ // if you need a custom webpack configuration you can uncomment the following import
4
+ // and then use the `file:preprocessor` event
5
+ // as explained in the cypress docs
6
+ // https://docs.cypress.io/api/plugins/preprocessors-api.html#Examples
7
+
8
+ // /* eslint-disable import/no-extraneous-dependencies, global-require */
9
+ // const webpack = require('@cypress/webpack-preprocessor')
4
10
5
11
module . exports = ( on , config ) => {
6
- on ( 'file:preprocessor' , webpack ( {
7
- webpackOptions : require ( '@vue/cli-service/webpack.config' ) ,
8
- watchOptions : { }
9
- } ) )
12
+ // on('file:preprocessor', webpack({
13
+ // webpackOptions: require('@vue/cli-service/webpack.config'),
14
+ // watchOptions: {}
15
+ // }))
10
16
11
17
return Object . assign ( { } , config , {
12
18
fixturesFolder : 'tests/e2e/fixtures' ,
Original file line number Diff line number Diff line change 22
22
"access" : " public"
23
23
},
24
24
"dependencies" : {
25
- "@cypress/webpack-preprocessor" : " ^3.0.0" ,
26
25
"@vue/cli-shared-utils" : " ^3.1.1" ,
27
26
"cypress" : " ^3.1.0" ,
28
27
"eslint-plugin-cypress" : " ^2.0.1"
29
- },
30
- "peerDependencies" : {
31
- "@cypress/webpack-preprocessor" : " ^3.0.0"
32
28
}
33
29
}
You can’t perform that action at this time.
0 commit comments