Skip to content

Commit

Permalink
hide snapshots from jest
Browse files Browse the repository at this point in the history
  • Loading branch information
jantimon committed Jul 23, 2024
1 parent abc2515 commit 3eff690
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/example/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ export default defineConfig({
// This is only necessary because we use Vitest and Jest (to see verify that both work)
// and they should use different snapshot names
resolveSnapshotPath: (testPath, snapshotExtension) =>
testPath.replace('__tests__', '__tests__/__snapshots__/vite') + snapshotExtension,
testPath.replace('__tests__', '__tests__/__vite_snapshots__') + snapshotExtension,
}
});

0 comments on commit 3eff690

Please sign in to comment.