@histoire/plugin-percy
v0.17.17
Published
Histoire plugin to take screenshots with Percy for visual regression testing
Downloads
547
Readme
Histoire Screenshot with Percy for visual regression testing
You need the Percy CLI installed to be able to send snapshots to Percy.
pnpm add -D @histoire/plugin-percy
Add the plugin in histoire config:
import { defineConfig } from 'histoire'
import { HstPercy } from '@histoire/plugin-percy'
export default defineConfig({
plugins: [
HstPercy({
// Options here
}),
],
})
Then use the Percy CLI
# Replace `story:build` with the script to build the stories if you changed it
percy exec pnpm run story:build