Using :
-
Angular v5.2.0.
-
Webpack v3.10.0.
-
Jsdom v11.5.1.
-
Mocha-webpack for Node testing.
-
Mocha-loader for browser testing.
-
Chai, Chai-spies and Sinon for assertions, mocking, spying.
Clone the repo and do :
npm install
Launch Node tests with :
npm test
Launch Browser tests with :
npm run test:server
=> Go to localhost:8888 to see the results.
Launch tests coverage with :
npm run test:coverage
To generate test and coverage reports, launch :
npm run test:reports
You can find some explaination here.
Hope that can help.
Thanks,