From ecb0b9f85d5968bfc3d687b51944a47937f698fd Mon Sep 17 00:00:00 2001 From: "caleb.mabry.15@cnu.edu" Date: Sun, 6 Mar 2022 19:00:38 -0500 Subject: Added unit testing and code coverage --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'package.json') 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" -- cgit