File tree 3 files changed +22
-7
lines changed
packages/@vue/cli-plugin-e2e-cypress/generator
3 files changed +22
-7
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = api => {
2
2
api . render ( './template' , {
3
- hasTS : api . hasPlugin ( 'typescript' )
3
+ hasTS : api . hasPlugin ( 'typescript' ) ,
4
+ hasESLint : api . hasPlugin ( 'eslint' )
4
5
} )
5
6
6
7
api . extendPackage ( {
Original file line number Diff line number Diff line change
1
+ <%_ if (hasESLint) { _%>
2
+ {
3
+ "env": {
4
+ "mocha": true
5
+ },
6
+ "globals": {
7
+ "cy": false,
8
+ "Cypress": false,
9
+ "expect": false,
10
+ "assert": false
11
+ }
12
+ }
13
+ <%_ } _%>
Original file line number Diff line number Diff line change 1
1
// https://docs.cypress.io/guides/guides/plugins-guide.html
2
2
3
3
module . exports = ( on , config ) => {
4
- config . fixturesFolder = 'test/e2e/fixtures'
5
- config . integrationFolder = 'test/e2e/specs'
6
- config . screenshotsFolder = 'test/e2e/screenshots'
7
- config . videosFolder = 'test/e2e/videos'
8
- config . supportFile = 'test/e2e/support/index.js'
9
- return config
4
+ return Object . assign ( { } , config , {
5
+ fixturesFolder : 'test/e2e/fixtures' ,
6
+ integrationFolder : 'test/e2e/specs' ,
7
+ screenshotsFolder : 'test/e2e/screenshots' ,
8
+ videosFolder : 'test/e2e/videos' ,
9
+ supportFile : 'test/e2e/support/index.js'
10
+ } )
10
11
}
You can’t perform that action at this time.
0 commit comments