(opts: {
fileConfig: ProjectConfig;
profile: string | null;
})
| 439 | } |
| 440 | |
| 441 | function applyActiveProfileToFileConfig(opts: { |
| 442 | fileConfig: ProjectConfig; |
| 443 | profile: string | null; |
| 444 | }): ProjectConfig { |
| 445 | const nextFileConfig: ProjectConfig = { ...opts.fileConfig }; |
| 446 | if (opts.profile === null) { |
| 447 | delete nextFileConfig.activeSessionDefaultsProfile; |
| 448 | } else { |
| 449 | nextFileConfig.activeSessionDefaultsProfile = opts.profile; |
| 450 | } |
| 451 | return nextFileConfig; |
| 452 | } |
| 453 | |
| 454 | function resolveConfig(opts: { |
| 455 | fileConfig?: ProjectConfig; |
no outgoing calls
no test coverage detected