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

Method clear

lib/container.js:278–288  ·  view source on GitHub ↗

* Clear container * * @param {Object } newHelpers * @param {Object } newSupport * @param {Object } newPlugins

(newHelpers = {}, newSupport = {}, newPlugins = {})

Source from the content-addressed store, hash-verified

276 * @param {Object<string, *>} newPlugins
277 */
278 static async clear(newHelpers = {}, newSupport = {}, newPlugins = {}) {
279 container.helpers = newHelpers
280 container.translation = await loadTranslation()
281 container.proxySupportConfig = newSupport
282 container.proxySupport = createSupportObjects(newSupport)
283 container.plugins = newPlugins
284 container.sharedKeys = new Set() // Clear shared keys
285 asyncHelperPromise = Promise.resolve()
286 store.actor = null
287 debug('container cleared')
288 }
289
290 /**
291 * @param {Function|null} fn

Callers

nothing calls this directly

Calls 3

loadTranslationFunction · 0.85
createSupportObjectsFunction · 0.85
debugFunction · 0.85

Tested by

no test coverage detected