Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions frontend/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module.exports = {
testEnvironment: 'jsdom',
transform: {
'^.+\\.tsx?$': ['ts-jest', {}],
Copy link

Copilot AI May 16, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider adding a comment to explain that the regex covers the image formats used in the project, and if additional formats are introduced later, the regex should be updated accordingly.

Suggested change
'^.+\\.tsx?$': ['ts-jest', {}],
'^.+\\.tsx?$': ['ts-jest', {}],
// This regex matches the image formats currently used in the project.
// If additional image formats are introduced, update this regex accordingly.

Copilot uses AI. Check for mistakes.
'\\.(svg|png|jpg|jpeg|gif)$': 'jest-transform-stub',
},
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
Expand Down
8 changes: 8 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-fetch-mock": "^3.0.3",
"jest-transform-stub": "^2.0.0",
"mini-css-extract-plugin": "^2.9.2",
"path": "^0.12.7",
"prettier": "^3.4.2",
Expand Down