mirror of
https://github.com/hknsh/project-knedita.git
synced 2024-11-28 17:41:15 +00:00
17 lines
511 B
TypeScript
17 lines
511 B
TypeScript
import { pathsToModuleNameMapper } from 'ts-jest'
|
|
import { compilerOptions } from './tsconfig.json'
|
|
import type { JestConfigWithTsJest } from 'ts-jest'
|
|
|
|
const jestConfig: JestConfigWithTsJest = {
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'node',
|
|
setupFilesAfterEnv: ['<rootDir>/setupTest.ts'],
|
|
transform: {
|
|
'^.+\\.(t|j)sx?$': '@swc/jest'
|
|
},
|
|
roots: ['<rootDir>'],
|
|
modulePaths: [compilerOptions.baseUrl],
|
|
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths)
|
|
}
|
|
|
|
export default jestConfig
|