27 lines
522 B
TypeScript
27 lines
522 B
TypeScript
// jest.config.ts
|
|
import { resolve } from "path"
|
|
|
|
const jestConfig = {
|
|
// preset: 'jest-expo',
|
|
preset: 'ts-jest',
|
|
transform: {
|
|
'^.+\\.(ts|tsx)$': 'babel-jest',
|
|
},
|
|
moduleNameMapper: {
|
|
'@': "<rootDir>"
|
|
},
|
|
transformIgnorePatterns: [
|
|
'node_modules/(?!' +
|
|
[
|
|
'@cspotcode',
|
|
'node-fetch',
|
|
'fetch-blob',
|
|
'data-uri-to-buffer',
|
|
'jest-runtime',
|
|
'formdata-polyfill'
|
|
].join('|') +
|
|
')',
|
|
],
|
|
}
|
|
|
|
export default jestConfig |