#jest
Read more stories on Hashnode
Articles with this tag
Sometimes we want to write tests to check if certain elements are not rendered. For example, we might have a parameter to disable a section until the...
When working on Jest test cases, you might come across two different approaches, as you can see below. test('if this function succeeds', () => { ...
Now that we first looked at snapshot testing, you might already have come across some weird use-cases. For instance, what if your data returns a date...
Now that we set up Jest for our React application, we can start looking into snapshot testing. A snapshot is a direct output of your test's response...
Jest works absolutely perfectly with React. In fact, if you used Create React App to set up your app, it already comes with Jest. You can see by...
I found out this only after doing some research for this Jest series. Apparently, we get the test.only function, which we can use to only test one...