-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
global.config.js
32 lines (32 loc) · 934 Bytes
/
global.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
'use strict'
var __importDefault =
(this && this.__importDefault) ||
function (mod) {
return mod && mod.__esModule ? mod : { default: mod }
}
Object.defineProperty(exports, '__esModule', { value: true })
var pretty_format_1 = __importDefault(require('pretty-format'))
global['prettyFormat'] = pretty_format_1.default
global['sleep'] = function (time) {
return new Promise(function (resolve) {
return setTimeout(resolve, time)
})
}
global['requestAnimationFrame'] = function (fn) {
return setTimeout(fn)
}
global.document.documentElement.style['grid-column-gap'] = true
;(function () {
var spy = jest.spyOn(console, 'error')
beforeAll(function () {
spy.mockImplementation(function (message) {
// eslint-disable-next-line no-console
console.log(message)
throw new Error(message)
})
})
afterAll(function () {
spy.mockRestore()
})
})()
//# sourceMappingURL=global.config.js.map