|
60 | 60 | "@babel/plugin-proposal-object-rest-spread": "^7.12.1",
|
61 | 61 | "@babel/plugin-proposal-optional-chaining": "^7.12.1",
|
62 | 62 | "@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
| 63 | + "@babel/plugin-transform-modules-commonjs": "^7.18.2", |
63 | 64 | "@babel/plugin-transform-react-jsx": "^7.12.1",
|
64 | 65 | "@babel/plugin-transform-runtime": "^7.12.1",
|
65 | 66 | "@babel/preset-env": "^7.12.1",
|
66 | 67 | "@babel/preset-react": "^7.12.1",
|
67 | 68 | "@babel/preset-typescript": "^7.12.1",
|
68 | 69 | "@babel/runtime": "^7.12.1",
|
| 70 | + "@testing-library/dom": "^8.14.0", |
| 71 | + "@testing-library/jest-dom": "^5.16.4", |
| 72 | + "@testing-library/react": "12.1.5", |
| 73 | + "@testing-library/user-event": "^14.2.1", |
69 | 74 | "@types/chart.js": "^2.8.5",
|
70 | 75 | "@types/codemirror": "^0.0.98",
|
71 | 76 | "@types/debounce": "^1.2.0",
|
72 | 77 | "@types/events": "^3.0.0",
|
| 78 | + "@types/jest": "^28.1.3", |
73 | 79 | "@types/node": "^14.11.10",
|
74 | 80 | "@types/qrcode.react": "^1.0.1",
|
75 | 81 | "@types/query-string": "^6.3.0",
|
|
88 | 94 | "@typescript-eslint/eslint-plugin": "^4.25.0",
|
89 | 95 | "@typescript-eslint/parser": "^4.25.0",
|
90 | 96 | "autoprefixer": "^10.4.7",
|
| 97 | + "babel-jest": "^28.1.1", |
91 | 98 | "babel-loader": "^8.2.5",
|
92 | 99 | "babel-plugin-styled-components": "^2.0.7",
|
93 | 100 | "cross-env": "^7.0.2",
|
94 | 101 | "css-loader": "^5.2.7",
|
95 | 102 | "eslint": "^7.27.0",
|
96 | 103 | "eslint-config-standard": "^16.0.3",
|
97 | 104 | "eslint-plugin-import": "^2.23.3",
|
| 105 | + "eslint-plugin-jest-dom": "^4.0.2", |
98 | 106 | "eslint-plugin-node": "^11.1.0",
|
99 | 107 | "eslint-plugin-promise": "^5.1.0",
|
100 | 108 | "eslint-plugin-react": "^7.23.2",
|
101 | 109 | "eslint-plugin-react-hooks": "^4.2.0",
|
102 | 110 | "fork-ts-checker-webpack-plugin": "^6.2.10",
|
| 111 | + "identity-obj-proxy": "^3.0.0", |
| 112 | + "jest": "^28.1.1", |
103 | 113 | "postcss": "^8.4.14",
|
104 | 114 | "postcss-import": "^14.1.0",
|
105 | 115 | "postcss-loader": "^4.0.0",
|
|
111 | 121 | "svg-url-loader": "^7.1.1",
|
112 | 122 | "terser-webpack-plugin": "^4.2.3",
|
113 | 123 | "ts-essentials": "^9.1.2",
|
| 124 | + "ts-jest": "^28.0.5", |
114 | 125 | "twin.macro": "^2.8.2",
|
115 | 126 | "typescript": "^4.7.3",
|
116 | 127 | "webpack": "^4.43.0",
|
|
122 | 133 | },
|
123 | 134 | "scripts": {
|
124 | 135 | "clean": "cd public/assets && find . \\( -name \"*.js\" -o -name \"*.map\" \\) -type f -delete",
|
| 136 | + "test": "jest", |
125 | 137 | "lint": "eslint ./resources/scripts/**/*.{ts,tsx} --ext .ts,.tsx",
|
126 | 138 | "watch": "cross-env NODE_ENV=development ./node_modules/.bin/webpack --watch --progress",
|
127 | 139 | "build": "cross-env NODE_ENV=development ./node_modules/.bin/webpack --progress",
|
|
0 commit comments