Browse Source

Add build test

master
Jake Howard 5 years ago
parent
commit
b1f1ddb8a0
  1. 2
      package.json
  2. 4
      scripts/runtests
  3. 1
      tests/to-build.js

2
package.json

@ -9,7 +9,7 @@
"build-cli": "browserify ./lib/cli.js -o ./bin/cli.js",
"test": "./scripts/runtests",
"lint": "eslint 'lib/'",
"test-build": "browserify tests/build-test.js -t ./lib/index.js -o tests/out/build-test.js",
"test-build": "browserify tests/to-build.js -t ./lib/index.js -o tests/out/built.js",
"coverage": "istanbul cover node_modules/.bin/_mocha -- --require scripts/test-helper.js --bail --recursive 'tests/*.js'",
"mocha": "mocha --require scripts/test-helper.js --bail 'tests/**/*.js'"
},

4
scripts/runtests

@ -6,8 +6,8 @@ echo ">> Linting..."
eslint 'lib/'
# echo ">> Testing Build..."
# npm run test-build
echo ">> Testing Build..."
npm run test-build
echo ">> Testing Project..."
npm run coverage

1
tests/to-build.js

@ -0,0 +1 @@
console.log('foobar');
Loading…
Cancel
Save