(config: RuntimeConfigFile)
| 248 | } |
| 249 | |
| 250 | function normalizeConfigForPersistence(config: RuntimeConfigFile): ProjectConfig { |
| 251 | let base = normalizeDebuggerBackend(config); |
| 252 | if (config.enabledWorkflows !== undefined) { |
| 253 | base = { ...base, enabledWorkflows: normalizeEnabledWorkflows(config.enabledWorkflows) }; |
| 254 | } |
| 255 | if (config.customWorkflows !== undefined) { |
| 256 | base = { ...base, customWorkflows: normalizeCustomWorkflows(config.customWorkflows) }; |
| 257 | } |
| 258 | return base; |
| 259 | } |
| 260 | |
| 261 | function toProjectConfig(config: RuntimeConfigFile): ProjectConfig { |
| 262 | return config as ProjectConfig; |
no test coverage detected