ufosc / Alarm-Clock

Waking up is serious business.
11 stars 53 forks source link

Implemented React Native Testing and a Sample Test #84

Open david-willis-dev opened 3 weeks ago

david-willis-dev commented 3 weeks ago

Closes #61 This was mostly just to add React Native Testing to the project and show how it can be done. I added a test script for the AlarmCard component with Jest. The test script just covers the basic functionality, making sure it renders correctly. It also modifies the package.json file to include a script for testing. There seemed to be some compatibility issues with the version of the React library that was in the project, but I think I resolved them. Just a heads up.

In essence: -Added new test file AlarmCard.test.js to client/MyTestApp -Added a test script to package.json