File tree 2 files changed +5
-5
lines changed
test/unit/sources/migration
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -398,8 +398,8 @@ export function reduceConfig (cfg: LegacyCypressConfigJson): ConfigOptions {
398
398
case 'ignoreTestFiles' :
399
399
return {
400
400
...acc ,
401
- e2e : { ...acc . e2e , specExcludePattern : val } ,
402
- component : { ...acc . component , specExcludePattern : val } ,
401
+ e2e : { ...acc . e2e , excludeSpecPattern : val } ,
402
+ component : { ...acc . component , excludeSpecPattern : val } ,
403
403
}
404
404
case 'supportFile' :
405
405
return {
Original file line number Diff line number Diff line change @@ -394,12 +394,12 @@ describe('reduceConfig', () => {
394
394
expect ( newConfig . global . integrationFolder ) . to . not . exist
395
395
} )
396
396
397
- it ( 'should rename ignoreTestFiles to specExcludePattern ' , ( ) => {
397
+ it ( 'should rename ignoreTestFiles to excludeSpecPattern ' , ( ) => {
398
398
const config = { ignoreTestFiles : 'path/to/**/*.js' }
399
399
const newConfig = reduceConfig ( config )
400
400
401
- expect ( newConfig . e2e . specExcludePattern ) . to . eq ( config . ignoreTestFiles )
402
- expect ( newConfig . component . specExcludePattern ) . to . eq ( config . ignoreTestFiles )
401
+ expect ( newConfig . e2e . excludeSpecPattern ) . to . eq ( config . ignoreTestFiles )
402
+ expect ( newConfig . component . excludeSpecPattern ) . to . eq ( config . ignoreTestFiles )
403
403
} )
404
404
405
405
it ( 'should nest supportFile under component and e2e' , ( ) => {
You can’t perform that action at this time.
0 commit comments