fix(tests): make jest tests run again

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
Erik Michelson
2026-05-09 03:15:07 +02:00
committed by Philip Molares
parent ea9e0bdbd1
commit 84c6ed769d
5 changed files with 18 additions and 2 deletions
+8
View File
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"rootDir": ".",
"isolatedModules": true
},
"include": ["src/**/*.ts", "test/**/*.ts"]
}
+3
View File
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2026 The HedgeDoc developers (see AUTHORS file)
SPDX-License-Identifier: CC0-1.0
+5 -1
View File
@@ -116,7 +116,7 @@
"^.+\\.(t|j)s$": [
"ts-jest",
{
"tsconfig": "test/tsconfig.json",
"tsconfig": "jest.tsconfig.json",
"diagnostics": {
"ignoreCodes": [
151002
@@ -125,6 +125,10 @@
}
]
},
"transformIgnorePatterns": [
"/node_modules/",
"<rootDir>/../commons/dist/cjs/"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node",
"reporters": [
@@ -153,6 +153,7 @@ describe('FrontendConfigService', () => {
type: AuthProviderType.LDAP,
providerName: authConfig.ldap[0].providerName,
identifier: authConfig.ldap[0].identifier,
theme: null,
});
}
if (authConfig.oidc.length > 0) {
@@ -162,6 +163,7 @@ describe('FrontendConfigService', () => {
type: AuthProviderType.OIDC,
providerName: authConfig.oidc[0].providerName,
identifier: authConfig.oidc[0].identifier,
theme: null,
});
}
});
-1
View File
@@ -11,7 +11,6 @@
"outDir": "./dist",
"incremental": true,
"strict": true,
"strictNullChecks": true,
"strictPropertyInitialization": false,
"resolveJsonModule": true,
"useDefineForClassFields": false,