20 lines
496 B
TypeScript
20 lines
496 B
TypeScript
import type { Config } from 'jest'
|
|
|
|
const config: Config = {
|
|
testEnvironment: 'node',
|
|
transform: {
|
|
'^.+\\.tsx?$': [
|
|
'ts-jest',
|
|
{ tsconfig: 'tsconfig.json', isolatedModules: true }
|
|
]
|
|
},
|
|
testMatch: ['**/tests/unit/**/*.test.ts'],
|
|
moduleNameMapper: {
|
|
'^@/components/(.*)$': '<rootDir>/components/$1',
|
|
'^@/lib/(.*)$': '<rootDir>/lib/$1',
|
|
'^@/locales/(.*)$': '<rootDir>/locales/$1',
|
|
'^@/styles/(.*)$': '<rootDir>/styles/$1'
|
|
}
|
|
}
|
|
export default config
|