|
11 | 11 | "format": "prettier --write .",
|
12 | 12 | "lint": "eslint . --ext ts --ext tsx --ext js",
|
13 | 13 | "postinstall": "yarn autoclean --force",
|
14 |
| - "build:i18n": "node scripts/extract-i18n" |
| 14 | + "build:i18n": "node scripts/extract-i18n", |
| 15 | + "test": "jest" |
15 | 16 | },
|
16 | 17 | "repository": "QingWei-Li/notea",
|
17 | 18 | "husky": {
|
|
78 | 79 | "@types/adm-zip": "^0.4.34",
|
79 | 80 | "@types/classnames": "^2.2.11",
|
80 | 81 | "@types/formidable": "^1.0.32",
|
| 82 | + "@types/jest": "^27.0.1", |
81 | 83 | "@types/lodash": "^4.14.168",
|
82 | 84 | "@types/md5": "^2.3.0",
|
83 | 85 | "@types/minio": "^7.0.7",
|
84 | 86 | "@types/node": "^12.12.21",
|
85 | 87 | "@types/prosemirror-inputrules": "^1.0.4",
|
86 | 88 | "@types/react": "^17.0.11",
|
87 | 89 | "@types/react-dom": "^17.0.8",
|
| 90 | + "@types/supertest": "^2.0.11", |
88 | 91 | "@types/ua-parser-js": "^0.7.35",
|
89 | 92 | "@typescript-eslint/eslint-plugin": "^4.15.0",
|
90 | 93 | "@typescript-eslint/parser": "^4.15.0",
|
91 | 94 | "autoprefixer": "^10.2.4",
|
| 95 | + "babel-jest": "^27.1.0", |
92 | 96 | "babel-plugin-lodash": "^3.3.4",
|
| 97 | + "dotenv": "^10.0.0", |
93 | 98 | "eslint": "^7.20.0",
|
94 | 99 | "eslint-config-next": "^11.0.0",
|
95 | 100 | "eslint-config-prettier": "^7.2.0",
|
96 | 101 | "eslint-plugin-react": "^7.22.0",
|
97 | 102 | "eslint-plugin-react-hooks": "^4.2.0",
|
98 | 103 | "husky": "^5.0.9",
|
99 | 104 | "i18n-extract": "^0.6.7",
|
| 105 | + "jest": "^27.1.0", |
100 | 106 | "lint-staged": "^10.5.4",
|
101 | 107 | "next-pwa": "^5.2.21",
|
102 | 108 | "nightwind": "^1.1.6",
|
103 | 109 | "postcss": "^8.2.6",
|
104 | 110 | "prettier": "^2.2.1",
|
105 | 111 | "react-dom": "^17.0.2",
|
| 112 | + "supertest": "^6.1.6", |
106 | 113 | "tailwindcss": "^2.0.3",
|
107 | 114 | "typescript": "^4.3.4"
|
108 | 115 | },
|
|
0 commit comments