cilki / gameframe.online

GameFrame is a gaming analytics website created for CS373
http://gameframe.online
Apache License 2.0
5 stars 1 forks source link

Add unit testing to React and Javascript code #17

Closed therealsamf closed 6 years ago

therealsamf commented 6 years ago

We'll need to use utilize several tools to properly unit test our code

Mocha : Test runner. Utilizes Node.js

Enzyme : Testing framework for React components. React components can be a nuisance with just Mocha alone, but this framework makes it easy

SinonJS : Provides mocks and stubs, so we can test at the smallest level without depending on outside code

Chai : Assertion library for mocha. Plays well with sinon, enzyme, and mocha