We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1531e7 commit 4424c1cCopy full SHA for 4424c1c
__test__/lane/migrate.spec.ts
@@ -1,8 +1,6 @@
1
/// <reference path="../index.d.ts" />
2
import { renderHook, act } from '@testing-library/react-hooks'
3
import { createStore, useModel } from '../../src'
4
-import { timeout } from '../../src/helper'
5
-// import { timeout } from '../../src/helper'
6
7
describe('migrate test', async () => {
8
test('migrate from v4.0.x', async () => {
@@ -53,11 +51,9 @@ describe('migrate test', async () => {
53
51
result.current.actions.increment(5)
54
52
})
55
56
- await timeout(300, {})
57
58
act(() => {
59
- // expect(renderTimes).toEqual(3)
60
- console.group('expect result.current.state.count')
+ expect(renderTimes).toEqual(3)
61
expect(result.current.state.count).toBe(10)
62
63
0 commit comments