Skip to content

Commit eedd507

Browse files
committed
make batching more robust
1 parent 31f3999 commit eedd507

4 files changed

Lines changed: 9903 additions & 12178 deletions

File tree

__tests__/Clock.test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { StrictMode } from 'react'
22
import { act } from 'react-dom/test-utils'
3-
import { render, cleanup, flushEffects } from 'react-testing-library'
3+
import { render, cleanup } from 'react-testing-library'
44
import sinon from 'sinon'
55
import App from '../examples/clock/src/App'
66

@@ -11,8 +11,6 @@ describe('Clock App', () => {
1111
<App />
1212
</StrictMode>
1313
)
14-
// flush the inital didMount effect
15-
flushEffects()
1614

1715
const clearIntervalSpy = sinon.spy(global, 'clearInterval')
1816

0 commit comments

Comments
 (0)