|
15 | 15 | "lint": "eslint src --report-unused-disable-directives",
|
16 | 16 | "prebump": "pnpm run --sequential '/lint|test/'",
|
17 | 17 | "prepublishOnly": "pnpm run build",
|
18 |
| - "test": "cross-env BABEL_OUTPUT=commonjs jest", |
| 18 | + "test": "vitest run", |
19 | 19 | "start": "webpack serve",
|
20 | 20 | "website:clean": "rm -rf examples/dist",
|
21 | 21 | "website:build": "cross-env BABEL_TARGET=examples NODE_ENV=production webpack",
|
|
58 | 58 | "@testing-library/jest-dom": "6.6.3",
|
59 | 59 | "@testing-library/react": "16.3.0",
|
60 | 60 | "@testing-library/user-event": "14.6.1",
|
61 |
| - "babel-jest": "29.7.0", |
| 61 | + "@vitest/coverage-v8": "^3.1.1", |
62 | 62 | "babel-loader": "10.0.0",
|
63 | 63 | "babel-plugin-transform-react-remove-prop-types": "0.4.24",
|
64 | 64 | "cross-env": "7.0.3",
|
|
70 | 70 | "eslint-plugin-jsx-a11y": "6.10.2",
|
71 | 71 | "eslint-plugin-prettier": "5.2.6",
|
72 | 72 | "eslint-plugin-react": "7.37.5",
|
73 |
| - "globals": "16.0.0", |
74 | 73 | "hoist-non-react-statics": "3.3.2",
|
75 | 74 | "html-loader": "5.1.0",
|
76 | 75 | "html-webpack-plugin": "5.6.3",
|
77 |
| - "jest": "29.7.0", |
78 |
| - "jest-environment-jsdom": "29.7.0", |
79 | 76 | "less": "4.3.0",
|
80 | 77 | "less-loader": "12.2.0",
|
81 | 78 | "mini-css-extract-plugin": "2.9.2",
|
|
85 | 82 | "react-dom": "19.1.0",
|
86 | 83 | "react-live": "4.1.8",
|
87 | 84 | "react-modal": "3.16.3",
|
| 85 | + "vitest": "^3.1.1", |
88 | 86 | "webpack": "5.99.6",
|
89 | 87 | "webpack-cli": "6.0.1",
|
90 | 88 | "webpack-dev-server": "5.2.1"
|
91 | 89 | },
|
92 | 90 | "dependencies": {
|
93 | 91 | "clsx": "^2.0.0",
|
94 | 92 | "prop-types": "^15.5.0"
|
95 |
| - }, |
96 |
| - "jest": { |
97 |
| - "roots": [ |
98 |
| - "src" |
99 |
| - ], |
100 |
| - "testRegex": "/__tests__/.+-test\\.js$", |
101 |
| - "testEnvironment": "jsdom", |
102 |
| - "coveragePathIgnorePatterns": [ |
103 |
| - "/node_module/", |
104 |
| - "/__tests__/" |
105 |
| - ] |
106 | 93 | }
|
107 | 94 | }
|
0 commit comments