mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-06 14:55:07 +01:00
setup-jest compatibility with v28
This commit is contained in:
parent
f23d10f000
commit
e7f162e5e5
1 changed files with 4 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
import 'jest-preset-angular/setup-jest'
|
import { jest } from '@jest/globals'
|
||||||
|
|
||||||
/* global mocks for jsdom */
|
/* global mocks for jsdom */
|
||||||
const mock = () => {
|
const mock = () => {
|
||||||
|
|
@ -26,5 +26,6 @@ Object.defineProperty(document.body.style, 'transform', {
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
/* output shorter and more meaningful Zone error stack traces */
|
HTMLCanvasElement.prototype.getContext = <
|
||||||
// Error.stackTraceLimit = 2
|
typeof HTMLCanvasElement.prototype.getContext
|
||||||
|
>jest.fn()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue