mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Chore: remove some tsconfig and jest stuff
This commit is contained in:
		| @@ -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) | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 shamoon
					shamoon