mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-28 16:11:00 -05:00
7320fe2ac1
This is an import of 166ca8da12
with some changes to make it fit into the mono repo.
- TypedEventEmitter has been replaced with EventEmitter2 because EventEmitter2 is faster and TypedEventEmitter had some troubles with the new way of compiling.
- tsc-esm has been replaced with microbundle. The problems that lib0 doesn't export its types correctly has been solved using yarn patch.
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
25 lines
399 B
JSON
25 lines
399 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",
|
|
{
|
|
"useESM" : true
|
|
}
|
|
]
|
|
}
|
|
}
|