Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite08518a

Browse files
aryaemami59markerikson
authored andcommitted
Fixact related issues intest/hooks/useSelector.spec.tsx
1 parent1cd1385 commite08518a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎test/hooks/useSelector.spec.tsx‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,11 @@ describe('React', () => {
509509
</ProviderMock>,
510510
)
511511

512-
constdoDispatch=()=>normalStore.dispatch({type:''})
512+
constdoDispatch=()=>{
513+
rtl.act(()=>{
514+
normalStore.dispatch({type:''})
515+
})
516+
}
513517
expect(doDispatch).not.toThrowError()
514518

515519
spy.mockRestore()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp