mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	setup-jest compatibility with v28
This commit is contained in:
		| @@ -1,4 +1,4 @@ | ||||
| import 'jest-preset-angular/setup-jest' | ||||
| import { jest } from '@jest/globals' | ||||
|  | ||||
| /* global mocks for jsdom */ | ||||
| const mock = () => { | ||||
| @@ -26,5 +26,6 @@ Object.defineProperty(document.body.style, 'transform', { | ||||
|   }, | ||||
| }) | ||||
|  | ||||
| /* output shorter and more meaningful Zone error stack traces */ | ||||
| // Error.stackTraceLimit = 2 | ||||
| HTMLCanvasElement.prototype.getContext = < | ||||
|   typeof HTMLCanvasElement.prototype.getContext | ||||
| >jest.fn() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 shamoon
					shamoon