MCPcopy Create free account
hub / github.com/garris/BackstopJS / captureConfigPaths

Function captureConfigPaths

core/util/extendConfig.js:88–96  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

86}
87
88function captureConfigPaths (config) {
89 const captureDir = path.join(tmpdir, 'capture');
90 if (!fs.existsSync(captureDir)) {
91 fs.mkdirSync(captureDir);
92 }
93 const configHash = hash(config);
94 config.captureConfigFileName = path.join(tmpdir, 'capture', configHash + '.json');
95 config.captureConfigFileNameDefault = path.join(config.backstop, 'capture', 'config.default.json');
96}
97
98function engine (config, userConfig) {
99 config.engine_scripts = path.join(config.projectPath, 'backstop_data', 'engine_scripts');

Callers 1

extendConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected