cmelion / generator-ng2-webpack

An opinionated tool for scaffolding an app using angular2 and webpack
MIT License
109 stars 18 forks source link

Allow 100% code coverage #35

Closed mattxo closed 8 years ago

mattxo commented 8 years ago

To allow 100% code coverage (not currently possible because of the typescript helper functions extends, decorate etc), one can

  1. npm install ts-helpers --save-dev
  2. add import 'ts-helpers' to the top of app/root.spec.ts and bootstrap.ts
  3. add 'noEmitHelpers : true' to tsconfig.json
cmelion commented 8 years ago

Thanks @mattxo can you issue a PR?

mattxo commented 8 years ago

Sure :)

cmelion commented 8 years ago

Thanks @mattxo!