mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-05 22:19:46 -06:00
16 lines
479 B
TypeScript
16 lines
479 B
TypeScript
import _ from 'lodash'
|
|
import type { ResolvedFromConfig } from '@packages/types'
|
|
import * as configUtils from '@packages/config'
|
|
|
|
export const setUrls = configUtils.setUrls
|
|
|
|
export function getResolvedRuntimeConfig (config, runtimeConfig) {
|
|
const resolvedRuntimeFields = _.mapValues(runtimeConfig, (v): ResolvedFromConfig => ({ value: v, from: 'runtime' }))
|
|
|
|
return {
|
|
...config,
|
|
...runtimeConfig,
|
|
resolved: { ...config.resolved, ...resolvedRuntimeFields },
|
|
}
|
|
}
|