mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
15 lines
379 B
TypeScript
15 lines
379 B
TypeScript
import { pathsToModuleNameMapper } from 'ts-jest';
|
|
import { compilerOptions } from './tsconfig.json';
|
|
|
|
export default {
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'node',
|
|
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, { prefix: '<rootDir>/src/' }),
|
|
modulePaths: [
|
|
'<rootDir>'
|
|
],
|
|
transform: {
|
|
'^.+\\.tsx?$': 'ts-jest',
|
|
},
|
|
};
|