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