Skip to content

Commit

Permalink
fix: set the value of testingType in project-ct (cypress-io#16885)
Browse files Browse the repository at this point in the history
  • Loading branch information
elevatebart authored and Calyhre committed Jun 22, 2021
1 parent ab8fd45 commit 03420eb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/server-ct/src/project-ct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@ export class ProjectCt extends ProjectBase<ServerCt> {

updatedConfig.componentTesting = true

// This value is normally set up in the `packages/server/lib/plugins/index.js#110`
// But if we don't return it in the plugins function, it never gets set
// Since there is no chance that it will have any other value here, we set it to "component"
// This allows users to not return config in the `cypress/plugins/index.js` file
// https://github.com/cypress-io/cypress/issues/16860
updatedConfig.resolved.testingType = { value: 'component' }

debug('updated config: %o', updatedConfig)

return updatedConfig
Expand Down

0 comments on commit 03420eb

Please sign in to comment.