Relative Content

Tag Archive for reactjsreact-testing-libraryredux-toolkitvitest

React Redux Toolkit Testing with Vitest

I have a problem with testing my app. I think that test is correct, it’s like in docs, but I always get error “Unable to find an element with the text: Check ours bestsellers!. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.“. When I use screen.debug(); I get only