Skip to content

Conversation

@hiroshinishio
Copy link
Collaborator

Added support for test-related files that should be treated as test artifacts and excluded from production code analysis:

  • Snapshot files: snapshots/, *.snap
  • Fixtures: fixtures/, fixtures/, .fixture.
  • Test config: jest.config., vitest.config., karma.conf.*
  • Test helpers: setupTests., testSetup., test-setup.*, test-utils/, test_helpers/
  • Storybook: .stories., stories/

Benefits:

  • Auto-merge will allow snapshot-only PRs
  • Coverage excludes snapshots/fixtures correctly
  • Test selection skips test artifacts properly

Added 37 new test cases to verify all patterns work correctly.

Added support for test-related files that should be treated as test
artifacts and excluded from production code analysis:

- Snapshot files: __snapshots__/, *.snap
- Fixtures: __fixtures__/, fixtures/, *.fixture.*
- Test config: jest.config.*, vitest.config.*, karma.conf.*
- Test helpers: setupTests.*, testSetup.*, test-setup.*, test-utils/, test_helpers/
- Storybook: *.stories.*, stories/

Benefits:
- Auto-merge will allow snapshot-only PRs
- Coverage excludes snapshots/fixtures correctly
- Test selection skips test artifacts properly

Added 37 new test cases to verify all patterns work correctly.
@hiroshinishio hiroshinishio merged commit 92c342a into main Dec 25, 2025
1 check passed
@hiroshinishio hiroshinishio deleted the wes branch December 25, 2025 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants