mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-03-31 13:35:08 -05:00
Chore: remove some tsconfig and jest stuff
This commit is contained in:
parent
fca10227bc
commit
5f7c60d9a1
@ -11,8 +11,7 @@
|
||||
],
|
||||
"parserOptions": {
|
||||
"project": [
|
||||
"tsconfig.json",
|
||||
"e2e/tsconfig.json"
|
||||
"tsconfig.json"
|
||||
],
|
||||
"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