Skip to content

Commit

Permalink
fix: replace specExcludePattern with excludeSpecPattern (#20763)
Browse files Browse the repository at this point in the history
  • Loading branch information
estrada9166 authored Mar 23, 2022
1 parent 8fd7422 commit 3042ef8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/data-context/src/sources/migration/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

2 comments on commit 3042ef8

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 3042ef8 Mar 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/10.0.0/linux-x64/10.0-release-3042ef8905da5e5196fe1f3686a9d259412bc938/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 3042ef8 Mar 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/10.0.0/darwin-x64/10.0-release-3042ef8905da5e5196fe1f3686a9d259412bc938/cypress.tgz

Please sign in to comment.