Added tolerance for screenshot regression tests in the hope it fixes CI/CD issue
Some checks failed
Build, Test, and Publish (to Private NPM Registry) UI Components Library / publish (push) Failing after 46s

This commit is contained in:
Alan Bridgeman 2026-05-13 11:42:23 -05:00
parent a6785f9f62
commit 4fe53e4ad0

View file

@ -25,6 +25,14 @@ export default defineConfig({
// You can add Firefox/WebKit here later if you want cross-browser testing
],
expect: {
// Configure global tolerance for visual regression tests
toHaveScreenshot: {
// Allows up to 2% of the pixels to be different before failing the test
maxDiffPixelRatio: 0.02
}
},
/* Run your local dev server before starting the tests */
webServer: {
command: 'yarn test:start', // The command to boot test-harness/server.ts