Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion jest.integration.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
'<rootDir>/ui/**/*.(js|ts|tsx)',
],
coverageDirectory: './coverage/integration',
coveragePathIgnorePatterns: ['.stories.*', '.snap', '.test.(js|ts|tsx)'],
coveragePathIgnorePatterns: ['.stories.*', '.snap', '.test\\.(js|ts|tsx)$'],
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Unescaped Dot Causes Incorrect Coverage Matching Pattern

The regex pattern '.test\.(js|ts|tsx)$' has an unescaped dot at the beginning. The first dot matches any character instead of a literal dot, which could cause unintended files to be excluded from coverage. The pattern should be '\.test\.(js|ts|tsx)$' to correctly match only files with the literal pattern ".test.js", ".test.ts", or ".test.tsx".

Fix in Cursor Fix in Web

coverageReporters: ['html', 'json'],
maxWorkers: '50%',
// The path to the Prettier executable used to format snapshots
Expand Down
Loading