jlengstorf / learn-rollup

This is an example project to accompany a tutorial on using Rollup.
https://code.lengstorf.com/learn-rollup-js/
ISC License
191 stars 61 forks source link

Add testing with mochajs and coverage report with istanbul #31

Closed guidorice closed 7 years ago

guidorice commented 7 years ago

@jlengstorf sending in case this is useful, maybe in an alt-config/ branch? I added testing with mochajs and test coverage report with istanbul.

The tests and coverage report apply to the src/ tree, not to the generate bundle. An alternate or hybrid approach would be to write tests applying to generated bundle.

Cheers, Alex

guidorice commented 7 years ago

Hmm I seem to have broken the source map! I will have to look into this. Closing PR for now.