]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Chore: remove some tsconfig and jest stuff
authorshamoon <4887959+shamoon@users.noreply.github.com>
Tue, 3 Dec 2024 17:12:38 +0000 (09:12 -0800)
committershamoon <4887959+shamoon@users.noreply.github.com>
Tue, 3 Dec 2024 17:12:38 +0000 (09:12 -0800)
src-ui/.eslintrc.json
src-ui/test-config.helper.ts [deleted file]

index 37f9c7c12237f585b5ed051bcd0fadd5d59b1dfb..b8eaf6f85577aa0bab53885b7aa125d5d09194d8 100644 (file)
@@ -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 (file)
index f38cdfb..0000000
+++ /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)
-}