Skip to content

Commit

Permalink
Strip data-chromatic attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyberboss committed Oct 19, 2024
1 parent 1cc29a8 commit 1339477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default defineConfig(({ mode }) => {
const testAttributeRemoverPlugin =
// keep this one last, the storybook config pops it off
removeTestIdAttribute({
attributes: ["data-testid"], // remove test attributes from jsx
attributes: ["data-testid", "data-chromatic"], // remove test attributes from jsx
usage: "vite"
});
if (process.env.VITE_DEV_MODE !== "false") {
Expand Down

0 comments on commit 1339477

Please sign in to comment.