mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2026-06-22 20:00:39 +00:00
51407598d9
This warning spams the output and currently is not critical to us. Setting `isolatedModules: true` in the tsconfig.json as suggested breaks the module resolution and imports. Signed-off-by: Erik Michelson <github@erik.michelson.eu>
30 lines
512 B
JSON
30 lines
512 B
JSON
{
|
|
"testRegex" : "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
|
|
"testPathIgnorePatterns" : [
|
|
"/dist/"
|
|
],
|
|
"moduleFileExtensions" : [
|
|
"ts",
|
|
"tsx",
|
|
"js"
|
|
],
|
|
"extensionsToTreatAsEsm" : [
|
|
".ts"
|
|
],
|
|
"moduleNameMapper" : {
|
|
"^(\\.{1,2}/.*)\\.js$" : "$1"
|
|
},
|
|
"transform" : {
|
|
"^.+\\.tsx?$" : [
|
|
"ts-jest",
|
|
{
|
|
"tsconfig" : "tsconfig.test.json",
|
|
"useESM" : true,
|
|
"diagnostics": {
|
|
"ignoreCodes": [151002]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|