mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2026-06-23 04:10:17 +00:00
fix(tests): make jest tests run again
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
committed by
Philip Molares
parent
ea9e0bdbd1
commit
84c6ed769d
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"rootDir": ".",
|
||||
"isolatedModules": true
|
||||
},
|
||||
"include": ["src/**/*.ts", "test/**/*.ts"]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
SPDX-FileCopyrightText: 2026 The HedgeDoc developers (see AUTHORS file)
|
||||
|
||||
SPDX-License-Identifier: CC0-1.0
|
||||
@@ -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,
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
"outDir": "./dist",
|
||||
"incremental": true,
|
||||
"strict": true,
|
||||
"strictNullChecks": true,
|
||||
"strictPropertyInitialization": false,
|
||||
"resolveJsonModule": true,
|
||||
"useDefineForClassFields": false,
|
||||
|
||||
Reference in New Issue
Block a user