Skip to content

Instantly share code, notes, and snippets.

View gztchan's full-sized avatar

LEON CHAN gztchan

View GitHub Profile
@gztchan
gztchan / .babelrc
Last active April 18, 2018 07:25
.babelrc, Generate Coverage with Karma for New JavaScript features
{
"env": {
"test": {
"plugins": [
[
"istanbul",
{
"include": ["lib/selection/**/*.js"]
}
]
@gztchan
gztchan / package.json
Created April 18, 2018 07:25
pacakage.json, Generate Coverage with Karma for New JavaScript features.
{
"scripts": {
"test:karma": "BABEL_ENV=test karma start ./scripts/karma/karma.dev.config.js",
}
}
@gztchan
gztchan / karma.base.config.js
Last active April 18, 2018 07:33
karma.base.config.js, Generate Coverage with Karma for New JavaScript features.
const webpackConfig = {
module: {
rules: [
{
test: /\.js$/,
loader: 'babel-loader',
exclude: /node_modules/,
},
],
},