We just got our first test running which is fantastic.
But before we continue I want to give you an extremely important note.
Remember just by itself does not have support for typescript out of the box.
So we are using that extra little library that we installed very quickly back inside our package not
just on file.
We installed T.S. Jess.
That is what gives just the ability to understand typescript.
Now this library or something inside a jest or something along this entire tool chain sometimes does
not work correctly.
So every now and then I can guarantee you are going to run into this every now and then.
You're going to see a test failing.
You're then going to go and try to fix it.
You're going to save a file and then you're going to see that the test is still failing.
Even if you really think that you fix the issue up.
So sometimes either jest or T.S. just I don't really know which one is causing the issue.
Sometimes they do not detect changes that you are making to your files.
It is really hard for me to replicate this issue in any way but it's something that I noticed while
I was developing this application.
So if you ever run into a scenario where a test is failing you go and change a file and you really think
you fix the issue but it's still not passing.
Here's how to solve it.
All you gotta do restart just hit control see rerun NPM run test and now just should see the updated
file.
So again if you start to make changes and you don't see them reflected in your test suite just restart
that's all you gotta do.
So that's all I want to mention here.
It is important enough because I don't want to get it stuck at some point time trying to figure out
what's going on.
Quick pause continue.
Just a minute.