From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 3 Dec 2024 17:12:38 +0000 (-0800) Subject: Chore: remove some tsconfig and jest stuff X-Git-Tag: v2.14.0~1^2~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f7c60d9a1de4d0cd011ef83495dfe59b4b5f15e;p=thirdparty%2Fpaperless-ngx.git Chore: remove some tsconfig and jest stuff --- diff --git a/src-ui/.eslintrc.json b/src-ui/.eslintrc.json index 37f9c7c122..b8eaf6f855 100644 --- a/src-ui/.eslintrc.json +++ b/src-ui/.eslintrc.json @@ -11,8 +11,7 @@ ], "parserOptions": { "project": [ - "tsconfig.json", - "e2e/tsconfig.json" + "tsconfig.json" ], "createDefaultProgram": true }, diff --git a/src-ui/test-config.helper.ts b/src-ui/test-config.helper.ts deleted file mode 100644 index f38cdfb268..0000000000 --- a/src-ui/test-config.helper.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { TestBed } from '@angular/core/testing' - -type CompilerOptions = Partial<{ - providers: any[] - useJit: boolean - preserveWhitespaces: boolean -}> -export type ConfigureFn = (testBed: typeof TestBed) => void - -export const configureTests = ( - configure: ConfigureFn, - compilerOptions: CompilerOptions = {} -) => { - const compilerConfig: CompilerOptions = { - preserveWhitespaces: false, - ...compilerOptions, - } - - const configuredTestBed = TestBed.configureCompiler(compilerConfig) - - configure(configuredTestBed) - - return configuredTestBed.compileComponents().then(() => configuredTestBed) -}