mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Chore: remove some tsconfig and jest stuff
This commit is contained in:
parent
fca10227bc
commit
5f7c60d9a1
@ -11,8 +11,7 @@
|
|||||||
],
|
],
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"project": [
|
"project": [
|
||||||
"tsconfig.json",
|
"tsconfig.json"
|
||||||
"e2e/tsconfig.json"
|
|
||||||
],
|
],
|
||||||
"createDefaultProgram": true
|
"createDefaultProgram": true
|
||||||
},
|
},
|
||||||
|
@ -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)
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user