diff --git a/package.json b/package.json index 0e63176da72dd..163987004332e 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,10 @@ "serve": "node server.js", "load-versions": "node scripts/load-versions.js", "start": "npm run serve", - "test": "standard *.js scripts/*.js scripts/**/*.js tests/**/*.js && tape tests/**/*.test.js | faucet" + "test": "npm run test:lint && npm run test:unit && npm run test:smoke", + "test:lint": "standard *.js scripts/*.js scripts/**/*.js tests/*.js tests/**/*.js", + "test:unit": "tape tests/**/*.test.js | faucet", + "test:smoke": "tape tests/*.smoketest.js | faucet" }, "repository": { "type": "git", diff --git a/tests/build.smoketest.js b/tests/build.smoketest.js new file mode 100644 index 0000000000000..77baf8d7359e7 --- /dev/null +++ b/tests/build.smoketest.js @@ -0,0 +1,18 @@ +'use strict' + +const path = require('path') +const exec = require('child_process').exec +const test = require('tape') + +const pathToBuild = path.resolve(__dirname, '../build.js') + +test('build.js', (t) => { + t.plan(1) + + t.test('should not generate error', (t) => { + exec(`node ${pathToBuild}`, (err) => { + t.equal(err, null) + t.end() + }) + }) +})