testing-library/react-testing-library

React Testing Library - Reading from Redux Store Crashes Node

Closed this issue · 1 comments

Version

v20.10.0

Platform

Microsoft Windows NT 10.0.22631.0
x64

Subsystem

No response

What steps will reproduce the bug?

npm run test

How often does it reproduce? Is there a required condition?

Every test run

What is the expected behavior? Why is that the expected behavior?

Expected behavior is to console.log the present store state and pass the test

Test Code Block

Image

Additional information

Image

console.log(initialState)
Image

###What is renderProvider ?
Standard wrapper for wrapping App from Redux Docs
Image

Fixed, when reading from store. You have to await.
This was not availale in docs or Stackoverflow

Image