We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d7cfc4 commit cfd16b6Copy full SHA for cfd16b6
packages/data-context/src/data/ProjectLifecycleManager.ts
@@ -1120,18 +1120,13 @@ export class ProjectLifecycleManager {
1120
}
1121
1122
setConfigFilePath (lang: 'ts' | 'js') {
1123
- switch (lang) {
1124
- case 'ts':
1125
- this._configFilePath = this._pathToFile('cypress.config.ts')
1126
- break
+ if (lang === 'ts') {
+ this._configFilePath = this._pathToFile('cypress.config.ts')
1127
1128
- case 'js':
1129
- this._configFilePath = this._pathToFile('cypress.config.js')
1130
1131
-
1132
- default:
1133
- throw new Error('Unreachable')
+ return
1134
+
+ this._configFilePath = this._pathToFile('cypress.config.js')
1135
1136
1137
private _pathToFile (file: string) {
0 commit comments