|
15 | 15 | "ui" |
16 | 16 | ], |
17 | 17 | "scripts": { |
18 | | - "build": "yarn run lint && webpack --config webpack.production.config.js", |
| 18 | + "build": "yarn lint && yarn test && webpack --config webpack.production.config.js", |
19 | 19 | "dev": "webpack-dev-server --hot --inline --config webpack.development.config.js", |
20 | 20 | "lint": "eslint .", |
21 | | - "test": "echo \"No test specified\"" |
| 21 | + "test": "jest" |
22 | 22 | }, |
23 | 23 | "peerDependencies": { |
24 | 24 | "react": "^16.8.0" |
|
35 | 35 | "@babel/plugin-proposal-class-properties": "^7.8.3", |
36 | 36 | "@babel/preset-env": "^7.8.4", |
37 | 37 | "@babel/preset-react": "^7.8.3", |
38 | | - "@trbl/eslint-config": "^1.2.3", |
| 38 | + "@trbl/eslint-config": "^1.2.4", |
39 | 39 | "babel-eslint": "^10.0.3", |
40 | 40 | "babel-loader": "^8.0.6", |
| 41 | + "enzyme": "^3.11.0", |
| 42 | + "enzyme-adapter-react-16": "^1.15.2", |
41 | 43 | "eslint": "^6.8.0", |
42 | 44 | "eslint-loader": "^3.0.3", |
43 | | - "eslint-plugin-import": "^2.20.0", |
| 45 | + "eslint-plugin-import": "^2.20.1", |
44 | 46 | "eslint-plugin-jest": "^23.6.0", |
45 | 47 | "eslint-plugin-jest-dom": "^2.0.0", |
46 | 48 | "eslint-plugin-jsx-a11y": "^6.2.3", |
47 | | - "eslint-plugin-react": "^7.18.0", |
| 49 | + "eslint-plugin-react": "^7.18.3", |
48 | 50 | "eslint-plugin-react-hooks": "^2.3.0", |
49 | 51 | "html-webpack-plugin": "^3.2.0", |
50 | 52 | "husky": "^4.2.1", |
| 53 | + "jest": "^25.1.0", |
51 | 54 | "lint-staged": "^10.0.6", |
52 | 55 | "react-hot-loader": "^4.12.19", |
53 | 56 | "webpack": "^4.41.5", |
|
0 commit comments