add Jest tests

This commit is contained in:
bkmartinjr
2018-05-29 21:16:48 -07:00
parent eaa4e6c7a4
commit 92dfc5f2ee
3 changed files with 287 additions and 3 deletions
+10 -3
View File
@@ -4,12 +4,15 @@
"license": "MIT",
"repository": "https://github.com/chanzuckerberg/cellxgene",
"scripts": {
"build": "npm run clean && webpack --config configuration/webpack/webpack.config.prod.js",
"dev": "npm run clean && webpack --config configuration/webpack/webpack.config.dev.js",
"build":
"npm run clean && webpack --config configuration/webpack/webpack.config.prod.js",
"dev":
"npm run clean && webpack --config configuration/webpack/webpack.config.dev.js",
"clean": "rimraf build",
"start": "node server/development.js",
"lint": "eslint src",
"prod": "cross-env NODE_ENV=production PORT=3000 node server/production.js"
"prod": "cross-env NODE_ENV=production PORT=3000 node server/production.js",
"test": "jest"
},
"engineStrict": true,
"engines": {
@@ -90,6 +93,7 @@
"gzip-size": "^3.0.0",
"html-webpack-inline-source-plugin": "0.0.6",
"html-webpack-plugin": "^2.22.0",
"jest": "^23.0.1",
"jsdom": "^9.4.1",
"json-loader": "^0.5.4",
"nyc": "^10.0.0",
@@ -106,5 +110,8 @@
"webpack-dev-middleware": "^1.6.1",
"webpack-hot-middleware": "^2.12.2",
"whatwg-fetch": "^2.0.1"
},
"jest": {
"testMatch": ["**/__tests__/**/?(*.)(spec|test).js?(x)"]
}
}