CVarisco / create-component-app

Tool to generate different types of React components from the terminal. 💻
MIT License
859 stars 58 forks source link

Adding testing framework #12

Closed labithiotis closed 7 years ago

labithiotis commented 7 years ago

Added a testing framework, at the moment this PR just covers the templates dir, but will add index and file test if you are happy with it in another PR.

CVarisco commented 7 years ago

Hi @labithiotis,

thanks for your contribution 🙂 Now I'm editing the package in this way: "test": "jest" and "test:watch": "jest --watch"

Another thing, I create a __tests__ folder to insert the tests.

Thanks again @labithiotis

CVarisco commented 7 years ago

I follow the convention of naming and folders from the official documentation of jest.

CVarisco commented 7 years ago

Good job @labithiotis ! I'm merging the new branch triptease-dl/add-test

Thanks