mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
add Angular todo list source code add the example to the existing list on supabase.io add codeowners file for automated assignment fo reviews
22 lines
600 B
TypeScript
22 lines
600 B
TypeScript
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)
|
|
}
|