@dao42/d42paas-front 0.6.18 → 0.6.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dao42/d42paas-front",
3
- "version": "0.6.18",
3
+ "version": "0.6.23",
4
4
  "description": "> TODO: description",
5
5
  "author": "eric183 <kk297466058@gmail.com>",
6
6
  "homepage": "https://github.com/dao42/d42paas_frontend#readme",
@@ -36,11 +36,15 @@
36
36
  "fix": "eslint --fix --ext .jsx src/**",
37
37
  "copyTS": "shx cp ./src/types/editor.d.ts ./dist",
38
38
  "np": "npm publish --access-public",
39
- "patch": "npm version patch"
39
+ "patch": "npm version patch",
40
+ "test": "jest --verbose"
40
41
  },
41
42
  "dependencies": {
42
43
  "@dao42/d42paas_rtc": "^0.1.8",
44
+ "@headlessui/react": "^1.4.3",
45
+ "@types/jest": "^27.4.0",
43
46
  "dayjs": "^1.10.7",
47
+ "ts-jest": "^27.1.3",
44
48
  "typescript": "4.5"
45
49
  },
46
50
  "devDependencies": {
@@ -172,5 +176,21 @@
172
176
  "bugs": {
173
177
  "url": "https://github.com/dao42/d42paas_frontend/issues"
174
178
  },
179
+ "jest": {
180
+ "preset": "ts-jest",
181
+ "testMatch": [
182
+ "**/__tests__/**/*.ts?(x)",
183
+ "**/?(*.)+(spec|test).ts?(x)"
184
+ ],
185
+ "moduleNameMapper": {
186
+ "^.+\\.css$": "identity-obj-proxy",
187
+ "^(app/.+)$": "<rootDir>/src/$1/",
188
+ "^(components/.+)$": "<rootDir>/src/$1/",
189
+ "^(stores/.+)$": "<rootDir>/src/$1/",
190
+ "^(views/.+)$": "<rootDir>/src/$1/",
191
+ "^(assets/.+)$": "<rootDir>/src/$1/",
192
+ "^(models/.+)$": "<rootDir>/src/$1/"
193
+ }
194
+ },
175
195
  "gitHead": "492b228acbf6f7bc309984755a8dd948ea6fb0e2"
176
196
  }