(config, userConfig)
| 6 | const version = require('../../package.json').version; |
| 7 | |
| 8 | function extendConfig (config, userConfig) { |
| 9 | bitmapPaths(config, userConfig); |
| 10 | ci(config, userConfig); |
| 11 | htmlReport(config, userConfig); |
| 12 | jsonReport(config, userConfig); |
| 13 | comparePaths(config); |
| 14 | captureConfigPaths(config); |
| 15 | engine(config, userConfig); |
| 16 | |
| 17 | config.id = userConfig.id; |
| 18 | config.engine = userConfig.engine || null; |
| 19 | config.report = userConfig.report || ['browser']; |
| 20 | config.defaultMisMatchThreshold = 0.1; |
| 21 | config.debug = userConfig.debug || false; |
| 22 | config.resembleOutputOptions = userConfig.resembleOutputOptions; |
| 23 | config.asyncCompareLimit = userConfig.asyncCompareLimit; |
| 24 | config.backstopVersion = version; |
| 25 | config.dockerCommandTemplate = userConfig.dockerCommandTemplate; |
| 26 | config.scenarioLogsInReports = userConfig.scenarioLogsInReports; |
| 27 | return config; |
| 28 | } |
| 29 | |
| 30 | function bitmapPaths (config, userConfig) { |
| 31 | config.bitmaps_reference = path.join(config.projectPath, 'backstop_data', 'bitmaps_reference'); |
no test coverage detected