some frontend unit tests

This commit is contained in:
Danny Coates 2018-02-20 20:31:27 -08:00
parent 4929437283
commit 78728ce4ca
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
24 changed files with 708 additions and 417 deletions

View file

@ -9,6 +9,7 @@
"private": true,
"scripts": {
"precommit": "lint-staged",
"prepush": "npm test",
"clean": "rimraf dist",
"build": "npm run clean && webpack -p",
"lint": "npm-run-all lint:*",
@ -23,8 +24,9 @@
"changelog": "github-changes -o mozilla -r send --only-pulls --use-commit-body --no-merges",
"contributors": "git shortlog -s | awk -F\\t '{print $2}' > CONTRIBUTORS",
"release": "npm-run-all contributors changelog",
"test": "mocha test/unit",
"test:ci": "nyc mocha --reporter=min test/unit",
"test": "npm-run-all test:*",
"test:backend": "nyc mocha --reporter=min test/unit",
"test:frontend": "cross-env NODE_ENV=development node test/frontend/runner.js && nyc report --reporter=html",
"start": "cross-env NODE_ENV=development webpack-dev-server",
"prod": "node server/prod.js",
"cover": "nyc --reporter=html mocha test/unit"
@ -43,7 +45,7 @@
},
"nyc": {
"reporter": [
"text-summary"
"text"
],
"cache": true
},
@ -53,6 +55,7 @@
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-plugin-istanbul": "^4.1.5",
"babel-plugin-yo-yoify": "^1.0.2",
"babel-preset-env": "^1.6.1",
"babel-preset-es2015": "^6.24.1",
@ -88,11 +91,11 @@
"postcss-loader": "^2.1.0",
"prettier": "^1.10.2",
"proxyquire": "^1.8.0",
"puppeteer": "^1.1.0",
"raven-js": "^3.22.2",
"redis-mock": "^0.21.0",
"require-from-string": "^2.0.1",
"rimraf": "^2.6.2",
"selenium-webdriver": "^3.6.0",
"sinon": "^4.3.0",
"string-hash": "^1.1.3",
"stylelint": "^9.0.0",
@ -102,6 +105,7 @@
"testpilot-ga": "^0.3.0",
"val-loader": "^1.1.0",
"webpack": "^3.11.0",
"webpack-dev-middleware": "^2.0.6",
"webpack-dev-server": "2.9.1",
"webpack-manifest-plugin": "^1.3.2",
"webpack-unassert-loader": "^1.2.0"