Skip to content

Commit 3042ef8

Browse files
authored
fix: replace specExcludePattern with excludeSpecPattern (#20763)
1 parent 8fd7422 commit 3042ef8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/data-context/src/sources/migration/codegen.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,8 @@ export function reduceConfig (cfg: LegacyCypressConfigJson): ConfigOptions {
398398
case 'ignoreTestFiles':
399399
return {
400400
...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 },
403403
}
404404
case 'supportFile':
405405
return {

packages/data-context/test/unit/sources/migration/codegen.spec.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -394,12 +394,12 @@ describe('reduceConfig', () => {
394394
expect(newConfig.global.integrationFolder).to.not.exist
395395
})
396396

397-
it('should rename ignoreTestFiles to specExcludePattern', () => {
397+
it('should rename ignoreTestFiles to excludeSpecPattern', () => {
398398
const config = { ignoreTestFiles: 'path/to/**/*.js' }
399399
const newConfig = reduceConfig(config)
400400

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)
403403
})
404404

405405
it('should nest supportFile under component and e2e', () => {

0 commit comments

Comments
 (0)