Code I wrote to learn unit testing by learning functional programming first
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build-complete
build
.gitignore
README.md
package.json

README.md

Learn JavaScript Unit Testing by learning Functional Programming first!

This is code I wrote to get a better handle on unit testing with QUnit. I had an epiphany that learning unit testing required learning functional programming first.

You can read the blog post/tutorial for all this here. The build-complete folder has the final code but you can use the code in the build folder to add code and follow along if you like.

To do this, make sure you have the most-recent version of Node/npm globally installed on your machine. From there:

  1. Clone the repo.
  2. Do an npm install.
  3. Type npm start in the terminal.

Then go to http://localhost:3000: you should a blank page with only a link to the test suite. As you update code from the tutorial in the build folder, you will see changes.