mirror of
https://github.com/docmost/docmost.git
synced 2026-09-11 07:56:54 +08:00
27 lines
942 B
JSON
27 lines
942 B
JSON
{
|
|
"moduleFileExtensions": ["js", "json", "ts"],
|
|
"rootDir": ".",
|
|
"testEnvironment": "node",
|
|
"testRegex": ".*\\.integration-spec\\.ts$",
|
|
"transform": {
|
|
"happy-dom.+\\.js$": [
|
|
"babel-jest",
|
|
{
|
|
"presets": [["@babel/preset-env", { "targets": { "node": "current" } }]]
|
|
}
|
|
],
|
|
"^.+\\.(t|j)s$": "ts-jest"
|
|
},
|
|
"transformIgnorePatterns": [
|
|
"/node_modules/(?!(\\.pnpm/)?(nanoid|uuid|image-dimensions|marked|happy-dom)(@|/))"
|
|
],
|
|
"moduleNameMapper": {
|
|
"^@docmost/db/(.*)$": "<rootDir>/../src/database/$1",
|
|
"^@docmost/transactional/(.*)$": "<rootDir>/../src/integrations/transactional/$1",
|
|
"^@docmost/ee/(.*)$": "<rootDir>/../src/ee/$1",
|
|
"^src/(.*)$": "<rootDir>/../src/$1",
|
|
"^@docmost/base-formula/server$": "<rootDir>/../../../packages/base-formula/src/index.server.ts",
|
|
"^@docmost/base-formula/client$": "<rootDir>/../../../packages/base-formula/src/index.client.ts"
|
|
}
|
|
}
|