garris / garris/BackstopJS

(Feature) Use backstop.js instead of backstop.json by default

Open
#1,482 11 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.2k
Forks
621
PR merge metrics
No merged PRs in 30d

Description

Hi @garris

Did you ever considered using a backstop.js(by default) instead of the backstop.json.

I know one can use it with `backstop test --docker --config=backstop.js` but I think it would be more efficient for the future.
I use this for all projects where I use backstopjs.

Advantages:
- you can add comments to config file
- blocks and be out-commented
- code can be generated dynamically
- more readable
- zillions of double quotes disappear in the config file

Disadvantages:
- ?

Here is a full example of "kind of" what I mean and how I would use it.
https://github.com/klodoma/backstopjs-debug/tree/feature/js-config

![image](https://github.com/garris/BackstopJS/assets/944350/47f6140e-f628-4d09-bea2-59ce29238a3b)
![image](https://github.com/garris/BackstopJS/assets/944350/15c5fb3b-19d6-4c5f-9ccb-a8812fa9e882)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.