Skip to content

mifp/Angular-testing-webpack-mocha-chai-sinon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Running Angular Tests with Webpack, Mocha, Chai and Sinon.

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,

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 52.0%
  • JavaScript 40.9%
  • HTML 7.1%