Skip to content

Instantly share code, notes, and snippets.

@davetorbeck
Last active March 9, 2018 01:28
Show Gist options
  • Save davetorbeck/7c92b7ff92d4e30e499b5b21c75010d6 to your computer and use it in GitHub Desktop.
Save davetorbeck/7c92b7ff92d4e30e499b5b21c75010d6 to your computer and use it in GitHub Desktop.
sample package.json with test and test-debug
{
"scripts": {
"dev": "webpack-dev-server --open --hot",
"build": "webpack --progress --hide-modules",
"test": "cross-env NODE_ENV=test nyc mocha-webpack --webpack-config webpack.config.js --require test/setup.js test/**/*.spec.js",
"test-debug": "cross-env NODE_ENV=test nyc node --inspect-brk ./node_modules/mocha-webpack/lib/cli --webpack-config webpack.config.js --require test/setup.js test/**/*.spec.js"
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment