1.1.0 • Published 9 months ago
@mate-academy/backstop-config v1.1.0
@mate-academy/backstop-config
Link to documentation BackstopJS
Install
npm install --save-dev @mate-academy/backstop-configUsage
- Create file backstopConfig.js
- Connect module to file:
const backstop = require('@mate-academy/backstop-config'); - Update the test params in file backstopConfig.js.
Example
viewports: [{
name: 'custom-size',
width: 200,
height: 50,
}]scenarios: [{
...basicScenario,
label: 'Elementary test',
referenceUrl:
'https://mate-academy.github.io/layout_solutions/hello-world/',
}]For more information on how to updated config file, look to the documentation.
Assignment
Config file for BackstopJS. We use it for testing students HTML task.