Skip to content

SepiG/unit-test-js-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unit Test JS demo

a simple demo with Jasmine, Browserify, and Gulp on NodeJS

Why?

I want to unit test my JS libraries AND use it in my browser.

Walkthrough Guide

Read the blog post that walks through this repo to add GulpJS, gulp-jasmine, and browserify.

Dev

// Run default task to run specs and generate minified JS
gulp

Questions

Why did you include the node_modules dir?

  • Per the npm-faq, "Check node_modules into git for things you deploy, such as websites and apps."

Why did you not include the [insert task here] Gulp task? Why did you organize your folders that way? Why didn't you include more test cases?

  • This demo is intended as an easy to understand example of using Gulp + Jasmine + Browserify together. This demo is not a production ready project.

License

MIT

About

unit test your JS & use it in your browser

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 58.8%
  • HTML 24.5%
  • CSS 16.7%