Testing and Transpilation - a podcast by Kent C. Dodds

from 2016-06-24T02:40:25

:: ::

I got a question (https://egghead.io/forums/lesson-discussion/topics/how-to-write-a-javascript-library-adding-es6-support#post-4659)
about why we test our pre-transpiled code (or rather, instrument that codefor coverage) rather than our post-transpiled code. So here's my answer. I
reference babel-plugin-__coverage__ (https://www.npmjs.com/package/babel-plugin-__coverage__) (use this withkarma) and nyc (https://www.npmjs.com/package/nyc) (use this with tests
run in node, like with mocha (https://www.npmjs.com/package/mocha) orava (https://www.npmjs.com/package/ava)).
Good luck!

Further episodes of 3 Minutes with Kent

Further podcasts by Kent C. Dodds

Website of Kent C. Dodds