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

Function normalizePluginOverrides

bin/mcp-server.js:113–121  ·  view source on GitHub ↗
(plugins)

Source from the content-addressed store, hash-verified

111}
112
113function normalizePluginOverrides(plugins) {
114 if (!plugins || typeof plugins !== 'object') return {}
115 const out = {}
116 for (const [name, opts] of Object.entries(plugins)) {
117 if (opts === false) continue
118 out[name] = (opts === true || opts == null) ? {} : opts
119 }
120 return out
121}
122
123function applyPluginOverrides(config, plugins) {
124 config.plugins = config.plugins || {}

Callers 1

initCodeceptFunction · 0.85

Calls 1

entriesMethod · 0.80

Tested by

no test coverage detected