We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Hello!
I have 12+ config files with scenarios and in each config file i use equal viewports options
viewports
Can BackstopJS use separate config file for viewports like --config?
--config
It would be cool use this like:
backstop test --config='./path_to_config' --viewports='./path_to_viewports'
The text was updated successfully, but these errors were encountered:
You could use .js config file instead of json. Then create a file viewports.js
.js
json
viewports.js
module.exports = [ { label: 'phone', width: 320, height: 480 }, { label: 'tablet', width: 1024, height: 768 } ]
And then, in your config.js files:
config.js
const viewports = require('./viewports'); module.exports = { id: 'config_id', viewports: viewports ... }
Sorry, something went wrong.
You could use .js config file instead of json. Then create a file viewports.js module.exports = [ { label: 'phone', width: 320, height: 480 }, { label: 'tablet', width: 1024, height: 768 } ] And then, in your config.js files: const viewports = require('./viewports'); module.exports = { id: 'config_id', viewports: viewports ... }
This method solved the problem for me.
No branches or pull requests
Hello!
I have 12+ config files with scenarios and in each config file i use equal
viewports
optionsCan BackstopJS use separate config file for
viewports
like--config
?It would be cool use this like:
The text was updated successfully, but these errors were encountered: