@mate-academy/backstop-config
v1.0.0
Published
simple backstop config
Downloads
1,639
Readme
@mate-academy/backstop-config
Link to documentation BackstopJS
Install
npm install --save-dev @mate-academy/backstop-config
Usage
- 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.