diff --git a/package.json b/package.json index 3b2d249..630fdfe 100644 --- a/package.json +++ b/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'" }, diff --git a/scripts/runtests b/scripts/runtests index 3d07368..4681e4e 100755 --- a/scripts/runtests +++ b/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 diff --git a/tests/to-build.js b/tests/to-build.js new file mode 100644 index 0000000..2124b39 --- /dev/null +++ b/tests/to-build.js @@ -0,0 +1 @@ +console.log('foobar');