How to add tests to local react app

Hi all,

I want to make my random quote generator app locally on my computer using create react app. I haven’t done this before and was wondering how I can use the tests provided on the task locally on my computer to check it passes?



Hi Clare!

I don’t know if you can do it locally, only on codepen. But follow this thread where they follow the same discussion: Running tests locally - #3 by anon57113136 :slight_smile:


Yes, you can create the app locally, but it still needs to be served on a public site.

Here is a freeCodeCamp news article on how to deploy your app.

If you are already using GitHub, then you can use GitHub Pages.

HI thanks that looks like the correct link - I am not really sure how to use codepen when you are using multiple js files like you do when using React - so I will see if ths works!

Codepen is not really the best for serving a production app. It is great for learning the basics of React but it does not really support multiple files (in the free version).