File tree 5 files changed +14
-5
lines changed
before-all-visit/cypress/plugins
before-each-visit/cypress/plugins
support-files/cypress/plugins
ts-example/cypress/plugins
5 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = ( on , config ) => {
2
- on ( 'task' , require ( '../../../../task' ) )
2
+ require ( '../../../../task' ) ( on , config )
3
+ // IMPORTANT to return the config object
4
+ // with the any changed environment variables
5
+ return config
3
6
}
Original file line number Diff line number Diff line change 1
1
module . exports = ( on , config ) => {
2
- on ( 'task' , require ( '../../../../task' ) )
2
+ require ( '../../../../task' ) ( on , config )
3
+ // IMPORTANT to return the config object
4
+ // with the any changed environment variables
5
+ return config
3
6
}
Original file line number Diff line number Diff line change 1
1
module . exports = ( on , config ) => {
2
- on ( 'task' , require ( '../../task' ) )
2
+ require ( '../../task' ) ( on , config )
3
3
on ( 'file:preprocessor' , require ( '../../use-babelrc' ) )
4
+ return config
4
5
}
Original file line number Diff line number Diff line change 1
1
module . exports = ( on , config ) => {
2
- on ( 'task' , require ( '../../../../task' ) )
2
+ require ( '../../../../task' ) ( on , config )
3
3
on ( 'file:preprocessor' , require ( '../../../../use-babelrc' ) )
4
+ return config
4
5
}
Original file line number Diff line number Diff line change 1
1
module . exports = ( on , config ) => {
2
- on ( 'task' , require ( '../../../../task' ) )
2
+ require ( '../../../../task' ) ( on , config )
3
+ return config
3
4
}
You can’t perform that action at this time.
0 commit comments