Skip to content

Commit

Permalink
Testing: Jest setUp and config
Browse files Browse the repository at this point in the history
  • Loading branch information
Vidit-Kushwaha committed Jun 28, 2024
1 parent 88cda35 commit 8e75f34
Show file tree
Hide file tree
Showing 5 changed files with 7,926 additions and 2,824 deletions.
20 changes: 20 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import type { Config } from '@jest/types'

const config: Config.InitialOptions = {
verbose: true,
setupFilesAfterEnv: ['<rootDir>/setupTests.ts'],
roots: ['<rootDir>/src'],
testMatch: [
'**/__tests__/**/*.+(ts|tsx|js)',
'**/?(*.)+(spec|test).+(ts|tsx|js)',
],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
},
testEnvironment: 'jsdom',
moduleNameMapper: {
'\\.(css|less|sass|scss)$': 'identity-obj-proxy',
'^.+\\.svg$': 'jest-transformer-svg',
},
}
export default config
Loading

0 comments on commit 8e75f34

Please sign in to comment.