aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorcaleb.mabry.15@cnu.edu <caleb.mabry.15@cnu.edu>2022-03-06 19:00:38 -0500
committercaleb.mabry.15@cnu.edu <caleb.mabry.15@cnu.edu>2022-03-06 19:00:38 -0500
commitecb0b9f85d5968bfc3d687b51944a47937f698fd (patch)
treecd160d11c58c0c75c7101c841c611bc7a0150956 /package.json
parent003862580fb809f0b0ef93f75d9dfea37de12e54 (diff)
Added unit testing and code coverage
Diffstat (limited to 'package.json')
-rw-r--r--package.json5
1 files changed, 4 insertions, 1 deletions
diff --git a/package.json b/package.json
index 7971138..27fd577 100644
--- a/package.json
+++ b/package.json
@@ -7,7 +7,8 @@
"babel": "babel ui.js -o ui.b.js",
"webpack": "webpack",
"deploy": "cross-env NODE_ENV=production webpack -p",
- "test": "echo \"Error: no test specified\" && exit 1",
+ "test": "jest",
+ "test:coverage": "jest --coverage",
"build": "webpack --config webpack.config.js",
"start": "webpack serve --config webpack.config.js",
"lint": "eslint . --ext .js",
@@ -24,12 +25,14 @@
"homepage": "https://github.com/AttorneyOnline/webAO#readme",
"devDependencies": {
"@babel/core": "^7.17.5",
+ "@babel/plugin-transform-modules-commonjs": "^7.16.8",
"@babel/preset-env": "^7.16.11",
"babel-loader": "^8.2.3",
"dotenv": "^16.0.0",
"eslint": "^8.10.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.25.4",
+ "jest": "^27.5.1",
"webpack": "^5.69.1",
"webpack-cli": "^4.9.2",
"webpack-dev-server": "^4.7.4"