Add browser tests (#696)

This commit is contained in:
Carl Törnqvist
2019-04-02 14:55:21 +02:00
committed by GitHub
parent 5879bdb404
commit a22fca69de
5 changed files with 291 additions and 46 deletions
+5 -1
View File
@@ -23,7 +23,9 @@
"inspect": "browserify --full-paths index -p tinyify | discify --open",
"prepublishOnly": "npm run build",
"start": "bankai start example",
"test": "standard && npm run deps && node test.js"
"test": "standard && npm run deps && npm run test:node && npm run test:browser",
"test:node": "node test/node.js | tap-format-spec",
"test:browser": "browserify test/browser.js | tape-run | tap-format-spec"
},
"repository": "choojs/choo",
"keywords": [
@@ -52,6 +54,7 @@
"xtend": "^4.0.1"
},
"devDependencies": {
"@tap-format/spec": "^0.2.0",
"@types/node": "^10.3.1",
"browserify": "^16.2.2",
"bundle-collapser": "^1.2.1",
@@ -62,6 +65,7 @@
"spok": "^0.9.1",
"standard": "^11.0.1",
"tape": "^4.6.3",
"tape-run": "^5.0.0",
"tinyify": "^2.2.0"
}
}