From 2b8f6c86421c70168c632edbd473976aef74c09e Mon Sep 17 00:00:00 2001 From: estrada9166 Date: Wed, 23 Mar 2022 16:33:49 -0500 Subject: [PATCH] fix: replace specExcludePattern with excludeSpecPattern --- packages/data-context/src/sources/migration/codegen.ts | 4 ++-- .../test/unit/sources/migration/codegen.spec.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/data-context/src/sources/migration/codegen.ts b/packages/data-context/src/sources/migration/codegen.ts index f74d4190140b..8c04eff0a463 100644 --- a/packages/data-context/src/sources/migration/codegen.ts +++ b/packages/data-context/src/sources/migration/codegen.ts @@ -398,8 +398,8 @@ export function reduceConfig (cfg: LegacyCypressConfigJson): ConfigOptions { case 'ignoreTestFiles': return { ...acc, - e2e: { ...acc.e2e, specExcludePattern: val }, - component: { ...acc.component, specExcludePattern: val }, + e2e: { ...acc.e2e, excludeSpecPattern: val }, + component: { ...acc.component, excludeSpecPattern: val }, } case 'supportFile': return { diff --git a/packages/data-context/test/unit/sources/migration/codegen.spec.ts b/packages/data-context/test/unit/sources/migration/codegen.spec.ts index 235635fa10ec..a8d6b61bfeb2 100644 --- a/packages/data-context/test/unit/sources/migration/codegen.spec.ts +++ b/packages/data-context/test/unit/sources/migration/codegen.spec.ts @@ -394,12 +394,12 @@ describe('reduceConfig', () => { expect(newConfig.global.integrationFolder).to.not.exist }) - it('should rename ignoreTestFiles to specExcludePattern', () => { + it('should rename ignoreTestFiles to excludeSpecPattern', () => { const config = { ignoreTestFiles: 'path/to/**/*.js' } const newConfig = reduceConfig(config) - expect(newConfig.e2e.specExcludePattern).to.eq(config.ignoreTestFiles) - expect(newConfig.component.specExcludePattern).to.eq(config.ignoreTestFiles) + expect(newConfig.e2e.excludeSpecPattern).to.eq(config.ignoreTestFiles) + expect(newConfig.component.excludeSpecPattern).to.eq(config.ignoreTestFiles) }) it('should nest supportFile under component and e2e', () => {