mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
18 lines
580 B
JavaScript
18 lines
580 B
JavaScript
|
const { compilerOptions } = require('./tsconfig.json');
|
||
|
const { pathsToModuleNameMapper } = require("ts-jest");
|
||
|
|
||
|
/** @type {import('ts-jest').JestConfigWithTsJest} */
|
||
|
module.exports = {
|
||
|
preset: 'ts-jest',
|
||
|
testEnvironment: 'node',
|
||
|
roots: ['<rootDir>'],
|
||
|
modulePaths: [compilerOptions.baseUrl],
|
||
|
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths),
|
||
|
"transform": {
|
||
|
"(.*)/node_modules/nanoid/.+\\.(j|t)sx?$": "ts-jest"
|
||
|
},
|
||
|
"transformIgnorePatterns": [
|
||
|
"node_modules/(?!nanoid/.*)"
|
||
|
],
|
||
|
"testRegex": "(/__tests__/.*\.(test|spec))\\.(jsx?|tsx?)$",
|
||
|
};
|