MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / append

Method append

lib/container.js:257–269  ·  view source on GitHub ↗

* Append new services to container * * @api * @param {Object } newContainer

(newContainer)

Source from the content-addressed store, hash-verified

255 * @param {Object<string, *>} newContainer
256 */
257 static append(newContainer) {
258 container = deepMerge(container, newContainer)
259
260 // If new support objects are added, update the proxy support
261 if (newContainer.support) {
262 // Merge the new support config with existing config
263 container.proxySupportConfig = { ...container.proxySupportConfig, ...newContainer.support }
264 // Recreate the proxy with merged config
265 container.proxySupport = createSupportObjects(container.proxySupportConfig)
266 }
267
268 debug('appended', JSON.stringify(newContainer).slice(0, 300))
269 }
270
271 /**
272 * Clear container

Callers

nothing calls this directly

Calls 3

deepMergeFunction · 0.90
createSupportObjectsFunction · 0.85
debugFunction · 0.85

Tested by

no test coverage detected