We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f715e3 commit 98b130eCopy full SHA for 98b130e
test.ts
@@ -35,6 +35,17 @@ describe('main-thread-scheduling', () => {
35
expect(isTimeToYieldMocked('background')).toBe(false)
36
})
37
38
+ test(`check Node.js support`, async () => {
39
+ const originalRequestAnimationFrame = window.requestAnimationFrame
40
+
41
+ ;(window as any).requestAnimationFrame = undefined
42
43
+ await yieldControl('user-visible')
44
+ await yieldOrContinue('user-visible')
45
46
+ window.requestAnimationFrame = originalRequestAnimationFrame
47
+ })
48
49
describe('with requestIdleCallback() mock', () => {
50
beforeEach(() => {
51
;(window as any).requestIdleCallback = (callback: IdleRequestCallback) => {
0 commit comments