File tree Expand file tree Collapse file tree 3 files changed +2067
-1387
lines changed
packages/@vue/cli-plugin-e2e-cypress
generator/template/tests/e2e/plugins Expand file tree Collapse file tree 3 files changed +2067
-1387
lines changed Original file line number Diff line number Diff line change 1
1
// https://docs.cypress.io/guides/guides/plugins-guide.html
2
+ const webpack = require ( '@cypress/webpack-preprocessor' )
2
3
3
4
module . exports = ( on , config ) => {
5
+ on ( 'file:preprocessor' , webpack ( {
6
+ webpackOptions : require ( '@vue/cli-service/webpack.config' ) ,
7
+ watchOptions : { } ,
8
+ } ) )
9
+
4
10
return Object . assign ( { } , config , {
5
11
fixturesFolder : 'tests/e2e/fixtures' ,
6
12
integrationFolder : 'tests/e2e/specs' ,
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" ,
25
26
"@vue/cli-shared-utils" : " ^3.0.2" ,
26
27
"cypress" : " ^3.0.2" ,
27
28
"eslint-plugin-cypress" : " ^2.0.1"
You can’t perform that action at this time.
0 commit comments