| 86 | } |
| 87 | |
| 88 | function 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 | |
| 98 | function engine (config, userConfig) { |
| 99 | config.engine_scripts = path.join(config.projectPath, 'backstop_data', 'engine_scripts'); |