Skip to content

Commit

Permalink
Create jest.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Aug 6, 2024
1 parent ece35ac commit d63f283
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions testing/unit/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// jest.config.js
module.exports = {
preset: 'ts-jest',
transform: {
'^.+\\.(ts|tsx)?$': 'ts-jest',
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
},
transformIgnorePatterns: ['node_modules/?!(jest-)?'],
setupFilesAfterEnv: ['<rootDir>/setupTests.ts'],
};

0 comments on commit d63f283

Please sign in to comment.