Skip to content

Commit

Permalink
refactor: update Jest configuration
Browse files Browse the repository at this point in the history
Replaced `jest.config.js` with `jest.config.cjs` and moved setup steps to `jest.setup.js`. Updated configuration to use `ts-jest` preset and `jest-environment-jsdom`. Added module name mapping for cleaner imports.
  • Loading branch information
mallikcheripally committed Aug 8, 2024
1 parent 6d1672c commit c464b6d
Show file tree
Hide file tree
Showing 4 changed files with 1,148 additions and 1,615 deletions.
8 changes: 8 additions & 0 deletions jest.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'jest-environment-jsdom',
testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)'],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
},
};
13 changes: 0 additions & 13 deletions jest.config.js

This file was deleted.

1 change: 1 addition & 0 deletions jest.setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '@testing-library/jest-dom/extend-expect';
Loading

0 comments on commit c464b6d

Please # to comment.