Skip to content

Commit

Permalink
test: add jest configuration for module aliases
Browse files Browse the repository at this point in the history
Created a fresh jest configuration file to map module aliases. This setup
ensures that jest can resolve module paths using the same aliases defined
in the project, improving test maintainability and readability.
  • Loading branch information
chessurisme committed Jun 5, 2024
1 parent 5171678 commit d158816
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions jest.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"moduleNameMapper": {
"^@utilities/(.*)$": "<rootDir>/src/utilities/$1",
"^@components/(.*)$": "<rootDir>/src/components/$1",
"^@pages/(.*)$": "<rootDir>/src/pages/$1",
"^@styles/(.*)$": "<rootDir>/src/styles/$1"
}
}

0 comments on commit d158816

Please sign in to comment.