-
+
{this.getHeader()}
-
+
{this.getRowsData()}
diff --git a/package.json b/package.json
index 39acf3f0..ca0813a8 100644
--- a/package.json
+++ b/package.json
@@ -3,13 +3,20 @@
"version": "1.0.0",
"description": "SeeQR",
"main": "./tsCompiled/backend/main",
+ "babel": {
+ "presets": [
+ "@babel/preset-env",
+ "@babel/preset-react"
+ ]
+ },
"scripts": {
"build": "tsc && webpack",
"docker": "docker-compose up -d",
"start": "cross-env NODE_ENV=production electron --noDevServer .",
"resetContainer": "docker container stop postgres-1 && docker container prune && docker container ls -a",
"dev": "tsc && cross-env NODE_ENV=development webpack-dev-server --hot",
- "new": "cross-env NODE_ENV=production electron --noDevServer ."
+ "new": "cross-env NODE_ENV=production electron --noDevServer .",
+ "test": "jest --verbose"
},
"repository": {
"type": "git",
@@ -26,10 +33,11 @@
"codemirror": "^5.57.0",
"concurrently": "^5.3.0",
"cross-env": "^7.0.2",
- "electron": "^9.0.0",
"electron-store": "^6.0.0",
"faker": "^5.1.0",
"fix-path": "^3.0.0",
+ "fs": "0.0.1-security",
+ "path": "^0.12.7",
"pg": "^8.3.2",
"react": "^16.13.1",
"react-bootstrap": "^1.3.0",
@@ -43,6 +51,9 @@
"@babel/core": "^7.10.5",
"@babel/preset-env": "^7.10.4",
"@babel/preset-react": "^7.10.4",
+ "@types/enzyme": "^3.10.7",
+ "@types/enzyme-adapter-react-16": "^1.0.6",
+ "@types/jest": "^26.0.14",
"@types/node": "^14.6.0",
"@types/react": "^16.9.46",
"@types/react-dom": "^16.9.8",
@@ -51,12 +62,15 @@
"babel-minify-webpack-plugin": "^0.3.1",
"csp-html-webpack-plugin": "^4.0.0",
"css-loader": "^3.5.3",
- "electron": "^9.0.0",
+ "electron": "^9.3.1",
"electron-devtools-installer": "^3.0.0",
"electron-packager": "^14.2.1",
+ "enzyme": "^3.11.0",
+ "enzyme-adapter-react-16": "^1.15.5",
"file-loader": "^6.0.0",
"html-webpack-plugin": "^4.3.0",
"image-webpack-loader": "^6.0.0",
+ "jest": "^26.4.2",
"mini-css-extract-plugin": "^0.9.0",
"nodemon": "^2.0.4",
"postcss-loader": "^3.0.0",
@@ -64,15 +78,34 @@
"sass-loader": "^9.0.2",
"source-map-loader": "^1.0.1",
"style-loader": "^1.2.1",
+ "ts-jest": "^26.4.0",
"ts-loader": "^8.0.2",
"ts-node": "^8.10.2",
"typescript": "^3.9.7",
- "webpack": "^4.43.0",
+ "webpack": "^4.44.2",
"webpack-cli": "^3.3.12",
"webpack-dev-server": "^3.11.0"
},
"bugs": {
"url": "https://github.com/oslabs-beta/SeeQR/issues"
},
- "homepage": "https://github.com/oslabs-beta/SeeQR"
-}
\ No newline at end of file
+ "homepage": "https://github.com/oslabs-beta/SeeQR",
+ "jest": {
+ "transform": {
+ "^.+\\.tsx?$": "ts-jest",
+ "^.+\\.jsx?$": "babel-jest"
+ },
+ "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
+ "moduleFileExtensions": [
+ "ts",
+ "tsx",
+ "js",
+ "jsx",
+ "json",
+ "node"
+ ],
+ "setupFilesAfterEnv": [
+ "
/__tests__/setupTests.js"
+ ]
+ }
+}
diff --git a/tsconfig.json b/tsconfig.json
index fa8d31de..5111e1ab 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -63,6 +63,7 @@
"exclude": [
"node_modules",
"dist",
- "tsCompiled"
+ "tsCompiled",
+ "__tests__"
]
}
\ No newline at end of file