mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06: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