Solid Testing Library
Guys , I have a function which has some signal and store updation inside it and I call this function by Clicking a button. Whenever I am doing userEvent click on the button my signal is not updating. I have to manually update the signal like below .
1 Reply
You need to await the userEvent.
Also, to test async code, we have testEffect in our testing library as a simple way to test asynchronous reactivity.