Great seed for enterprise projects with heavy focus on unit and integration testing.
This repository contains two releases:
1.4.0- for Angular JS 1.4 and lower (uses Component Pattern for Angular JS)
1.5.0- for Angular JS 1.5 and above which supports native
git clone https://github.com/tomastrajan/angular-js-es6-testing-example.git
All scripts are run with
npm run [script], for example:
npm run test.
start - start development server, try it by opening
build - create dev build, check
dist - create production build, check
server_build - serve content from
server_dist - serve content from
lint - lint code (with ESLint)
mocha - run all unit tests (with Mocha)
watch - run and watch all unit tests (with Mocha)
karma - run all integration tests (with Karma / Jasmine)
test - lint code and run all tests (with Mocha and Karma)
ci - for Travis CI
For more detailed info about tests check the original blog post.
*.test.js- mocha unit tests
*.integration.test.js- mocha integration tests (manual)
*.spec.js- karma integration tests (spin up Angular JS app context)