|
9 | 9 | "client": "./node_modules/.bin/ts-node build/dev-server.ts", |
10 | 10 | "build": "./node_modules/.bin/ts-node build/build.ts", |
11 | 11 | "lint": "./node_modules/.bin/eslint ./ --ext js,jsx,ts,tsx --ignore-pattern .eslintignore --cache", |
12 | | - "move-dist": "rm -rf public/audio && rm -rf public/avatar && rm -rf public/css && rm -rf public/fonts && rm -rf public/img && rm -rf public/js && mv -f dist/fiora/* public" |
| 12 | + "move-dist": "rm -rf public/audio && rm -rf public/avatar && rm -rf public/css && rm -rf public/fonts && rm -rf public/img && rm -rf public/js && mv -f dist/fiora/* public", |
| 13 | + "test": "jest" |
13 | 14 | }, |
14 | 15 | "pre-commit": [ |
15 | 16 | "lint" |
|
74 | 75 | "xss": "^0.3.7" |
75 | 76 | }, |
76 | 77 | "devDependencies": { |
| 78 | + "@types/enzyme": "^3.10.3", |
| 79 | + "@types/enzyme-adapter-react-16": "^1.0.5", |
77 | 80 | "@types/ip": "^1.1.0", |
| 81 | + "@types/jest": "^24.0.18", |
78 | 82 | "@types/koa": "^2.0.49", |
79 | 83 | "@types/koa-send": "^4.1.2", |
80 | 84 | "@types/koa-static": "^4.0.1", |
|
100 | 104 | "copy-webpack-plugin": "^4.5.1", |
101 | 105 | "cross-env": "^5.1.6", |
102 | 106 | "css-loader": "^3.2.0", |
| 107 | + "enzyme": "^3.10.0", |
| 108 | + "enzyme-adapter-react-16": "^1.14.0", |
103 | 109 | "eslint": "^6.1.0", |
104 | 110 | "eslint-config-airbnb": "^18.0.1", |
105 | 111 | "eslint-plugin-import": "^2.18.2", |
| 112 | + "eslint-plugin-jest": "^22.15.2", |
106 | 113 | "eslint-plugin-jsx-a11y": "^6.2.3", |
107 | 114 | "eslint-plugin-react": "^7.14.3", |
108 | 115 | "eslint-plugin-react-hooks": "^1.7.0", |
|
114 | 121 | "function-bind": "^1.1.0", |
115 | 122 | "html-webpack-plugin": "^3.2.0", |
116 | 123 | "http-proxy-middleware": "^0.17.3", |
| 124 | + "jest": "^24.9.0", |
117 | 125 | "less": "^3.10.3", |
118 | 126 | "less-loader": "^4.1.0", |
119 | 127 | "less-plugin-autoprefix": "^1.5.1", |
|
129 | 137 | "script-ext-html-webpack-plugin": "^2.0.1", |
130 | 138 | "semver": "^5.3.0", |
131 | 139 | "style-loader": "^0.15.0", |
| 140 | + "ts-jest": "^24.0.2", |
132 | 141 | "ts-loader": "^6.0.4", |
133 | 142 | "ts-node": "^8.3.0", |
134 | 143 | "typescript": "^3.5.3", |
|
0 commit comments