|
38 | 38 | "compile": "father-build",
|
39 | 39 | "deploy": "npm run docs:build && npm run docs:deploy",
|
40 | 40 | "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
41 |
| - "test": "father test", |
42 |
| - "test:coverage": "umi-test --coverage", |
| 41 | + "test": "vitest --watch=false", |
| 42 | + "test:watch": "vitest --ui --changed", |
| 43 | + "test:coverage": "vitest run --coverage", |
43 | 44 | "prepublishOnly": "npm run compile && np --no-cleanup --yolo --no-publish",
|
44 | 45 | "lint": "eslint src/ --ext .tsx,.ts",
|
45 | 46 | "lint:tsc": "tsc -p tsconfig.json --noEmit",
|
|
56 | 57 | },
|
57 | 58 | "devDependencies": {
|
58 | 59 | "@testing-library/jest-dom": "^5.16.4",
|
59 |
| - "@testing-library/react": "^12.1.5", |
60 |
| - "@types/enzyme": "^3.10.5", |
| 60 | + "@testing-library/react": "14.0.0", |
| 61 | + "@testing-library/react-hooks": "^8.0.1", |
| 62 | + "@testing-library/user-event": "^14.4.3", |
61 | 63 | "@types/jest": "^29.2.5",
|
62 | 64 | "@types/lodash": "^4.14.135",
|
63 | 65 | "@types/react": "^18.0.0",
|
64 | 66 | "@types/react-dom": "^18.0.0",
|
65 | 67 | "@umijs/fabric": "^2.5.2",
|
66 |
| - "@umijs/test": "^3.2.27", |
| 68 | + "@umijs/test": "4.0.61", |
| 69 | + "@vitejs/plugin-react": "^3.1.0", |
| 70 | + "@vitest/ui": "^0.29.3", |
67 | 71 | "dumi": "^1.1.0",
|
68 |
| - "enzyme": "^3.1.0", |
69 |
| - "enzyme-adapter-react-16": "^1.0.2", |
70 |
| - "enzyme-to-json": "^3.1.4", |
71 | 72 | "eslint": "^7.18.0",
|
72 |
| - "father": "^2.13.6", |
| 73 | + "father": "4.1.7", |
73 | 74 | "father-build": "^1.18.6",
|
74 | 75 | "gh-pages": "^3.1.0",
|
75 | 76 | "jest": "^29.3.1",
|
|
81 | 82 | "react-dom": "18.2.0",
|
82 | 83 | "react-redux": "^4.4.10",
|
83 | 84 | "redux": "^3.7.2",
|
84 |
| - "typescript": "^4.6.3" |
| 85 | + "ts-node": "^10.9.1", |
| 86 | + "typescript": "5.0.2", |
| 87 | + "vite": "^4.2.0", |
| 88 | + "vitest": "^0.29.3" |
85 | 89 | }
|
86 | 90 | }
|
0 commit comments