Last active
January 9, 2022 20:01
-
-
Save EndangeredMassa/87209850b2506ec021866e39bcd028d8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const IS_DEV = process.env.NODE_ENV === 'development'; | |
let environmentSafelist = []; | |
if (IS_DEV) { | |
environmentSafelist.push({ | |
pattern: /.+/, // allow everything | |
}); | |
} | |
module.exports = { | |
content: [ | |
"./index.html", | |
"./app/**/*.{hbs,js,html}" | |
], | |
safelist: [ | |
'active', | |
...environmentSafelist | |
] | |
} |
Yea I'm with you. Unfortunately, Percy doesn't work for companies that only allow self hosted services because of security reasons.
I wish there was a good self hosted solution.
I built a self-hosted visual diff testing solution at Groupon. It's work, but doable.
I also wish there was a battle-tested open source solution for this.
There is this https://github.com/garris/BackstopJS
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That is a good point. I updated the gist to only change for dev, not test. I like to use Percy for visual diff testing and that would have a reasonable chance of catching issues like this.