Implementing Code Coverage with Webpack v2

So if it’s so simple, then why even write this blog post?

{
test: /\.js$|\.jsx$/,
loader: 'babel-loader',
exclude: /node_modules/
},
{
test: /\.js$|\.jsx$/,
loader: 'isparta',
exclude: /node_modules|test/
}
{
test: /\.js$|\.jsx$/,
enforce: 'post',
loader: 'istanbul-instrumenter-loader',
exclude: /node_modules|test/,
query: {
esModules: true
}
}

--

--

--

developer by day, super hero all the time.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Benjamin Cripps

Benjamin Cripps

developer by day, super hero all the time.

More from Medium

Packaging a Typescript library — Part 1

Row grouping when you have cell renderer — AG Grid with React and Typescript

How to test a React App, with Jest and react-testing-library

Using Emotion in React App