- original blog post describing Proper testing of Angular JS 1.X applications with ES6 modules
- demo project with examples of mocha unit & karma integration tests
- Clone repository
git clone https://github.com/tomastrajan/angular-js-es6-testing-example.git
- Enter project directory
cd angular-js-es6-testing-example
- Install dependencies
npm install
All scripts are run with npm run [script]
, for example: npm run test
.
-
start
- start development server, try it by openinghttp://localhost:8081/webpack-dev-server/index.html
-
build
- create dev build, checkbuild
directory -
dist
- create production build, checkdist
directory -
server_build
- serve content frombuild
directory -
server_dist
- serve content fromdist
directory -
test
- run all unit tests (with Mocha) -
karma
- run all integration tests (with Karma / Jasmine)