AlexGaiser / fast-react

A CLI tool to quickly spin up a lightweight and fully customizable react project
MIT License
0 stars 0 forks source link

Find out how to create tests for a CLI and which testing library to use #7

Open AlexGaiser opened 3 years ago

AlexGaiser commented 3 years ago

I personally am a big fan of Jest, and think it will have all the tools we need for this project.

Once we have testing in place we will need to add branch protections.

AlexGaiser commented 3 years ago

@brian-ogilvie Were there any additional libraries you found for testing a CLI tool? If not I will close this issue

brian-ogilvie commented 3 years ago

Are we interested in using react-testing-library to verify that our generated app can load and run properly?

AlexGaiser commented 3 years ago

@brian-ogilvie Yes I think we should. I also wanted to let you know that I think we will need ts-jest as a dev dependency

brian-ogilvie commented 3 years ago

I think @types/jest accomplishes what we need.