Relative Content

Tag Archive for reactjstestingvitest

Render problem when testing react component

Hello I am trying to make a test for filtering columns, when I filter one column, it will say ´1 kolonner skjult´, if I filter 2 it will say 2 instead. When I make individual tests for these, they work as expected but I am trying to make a test where we first filter one, then make a click to filter one more, and then checking if the text has changed by rendering it, but it looks like the text just get appended and I have no idea why?? Here is the code