Chore: remove some tsconfig and jest stuff

This commit is contained in:
shamoon 2024-12-03 09:12:38 -08:00
parent fca10227bc
commit 5f7c60d9a1
2 changed files with 1 additions and 26 deletions

View File

@ -11,8 +11,7 @@
],
"parserOptions": {
"project": [
"tsconfig.json",
"e2e/tsconfig.json"
"tsconfig.json"
],
"createDefaultProgram": true
},

View File

@ -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)
}