|
32 | 32 | "proptypes": "tsx ./docs/scripts/generateProptypes.ts",
|
33 | 33 | "size:snapshot": "node --max-old-space-size=2048 ./scripts/sizeSnapshot/create",
|
34 | 34 | "size:why": "pnpm size:snapshot --analyze --accurateBundles",
|
35 |
| - "tc": "node test/cli.js", |
36 |
| - "test": "node scripts/test.mjs", |
37 |
| - "test:coverage": "cross-env NODE_OPTIONS=--max-old-space-size=4096 NODE_ENV=test TZ=UTC BABEL_ENV=coverage nyc mocha 'packages/**/*.test.{js,ts,tsx}' 'docs/**/*.test.{js,ts,tsx}' && nyc report -r lcovonly", |
38 |
| - "test:coverage:html": "cross-env NODE_ENV=test TZ=UTC BABEL_ENV=coverage nyc mocha 'packages/**/*.test.{js,ts,tsx}' 'docs/**/*.test.{js,ts,tsx}' && nyc report --reporter=html", |
39 |
| - "test:coverage:inspect": "cross-env NODE_ENV=test TZ=UTC BABEL_ENV=coverage mocha --inspect-brk", |
40 |
| - "test:karma": "cross-env NODE_ENV=test TZ=UTC karma start test/karma.conf.js", |
41 |
| - "test:karma:parallel": "cross-env NODE_ENV=test TZ=UTC PARALLEL=true karma start test/karma.conf.js", |
42 |
| - "test:unit": "cross-env NODE_ENV=test TZ=UTC mocha -n expose_gc 'packages/**/*.test.{js,ts,tsx}' 'docs/**/*.test.{js,ts,tsx}'", |
| 35 | + "test": "pnpm test:unit:jsdom", |
| 36 | + "test:jsdom": "pnpm test:unit:jsdom", |
| 37 | + "test:unit": "pnpm test:unit:jsdom", |
| 38 | + "test:unit:jsdom": "cross-env NODE_ENV=test TZ=UTC vitest", |
| 39 | + "test:browser": "pnpm test:unit:browser", |
| 40 | + "test:unit:browser": "cross-env NODE_ENV=test TZ=UTC BROWSER=true vitest", |
43 | 41 | "test:e2e": "pnpm run release:build && cd test/e2e && pnpm run start",
|
44 | 42 | "test:e2e-website": "npx playwright test test/e2e-website --config test/e2e-website/playwright.config.ts",
|
45 | 43 | "test:e2e-website:dev": "PLAYWRIGHT_TEST_BASE_URL=http://localhost:3001 npx playwright test test/e2e-website --config test/e2e-website/playwright.config.ts",
|
|
99 | 97 | "@playwright/test": "^1.52.0",
|
100 | 98 | "@types/babel__core": "^7.20.5",
|
101 | 99 | "@types/babel__traverse": "^7.20.7",
|
102 |
| - "@types/chai": "^4.3.20", |
103 | 100 | "@types/chai-dom": "^1.11.3",
|
104 | 101 | "@types/fs-extra": "^11.0.4",
|
105 | 102 | "@types/karma": "^6.3.9",
|
|
113 | 110 | "@types/yargs": "^17.0.33",
|
114 | 111 | "@typescript-eslint/eslint-plugin": "^8.31.1",
|
115 | 112 | "@typescript-eslint/parser": "^8.31.1",
|
| 113 | + "@vitejs/plugin-react": "^4.3.2", |
| 114 | + "@vitest/browser": "^3.1.2", |
| 115 | + "@vitest/coverage-v8": "^3.1.2", |
116 | 116 | "@vvago/vale": "^3.11.2",
|
117 | 117 | "autoprefixer": "^10.4.21",
|
118 | 118 | "axe-core": "4.10.3",
|
|
121 | 121 | "babel-plugin-module-resolver": "^5.0.2",
|
122 | 122 | "babel-plugin-optimize-clsx": "^2.6.2",
|
123 | 123 | "babel-plugin-react-remove-properties": "^0.3.0",
|
124 |
| - "babel-plugin-replace-imports": "^1.0.2", |
125 | 124 | "babel-plugin-search-and-replace": "^1.1.1",
|
126 | 125 | "babel-plugin-transform-inline-environment-variables": "^0.4.4",
|
127 | 126 | "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
|
135 | 134 | "danger": "^13.0.4",
|
136 | 135 | "date-fns-jalali-v2": "npm:[email protected]",
|
137 | 136 | "date-fns-v2": "npm:[email protected]",
|
| 137 | + "esbuild": "^0.25.3", |
138 | 138 | "eslint": "^8.57.1",
|
139 | 139 | "eslint-config-airbnb": "^19.0.4",
|
140 | 140 | "eslint-config-airbnb-base": "^15.0.0",
|
|
169 | 169 | "karma-webpack": "^5.0.1",
|
170 | 170 | "lerna": "^8.2.2",
|
171 | 171 | "lodash": "^4.17.21",
|
| 172 | + "magic-string": "^0.30.17", |
172 | 173 | "markdownlint-cli2": "^0.17.2",
|
173 | 174 | "mocha": "^11.2.2",
|
174 | 175 | "moment": "^2.30.1",
|
|
192 | 193 | "unist-util-visit": "^5.0.0",
|
193 | 194 | "util": "^0.12.5",
|
194 | 195 | "vite": "^6.3.4",
|
| 196 | + "vitest": "3.1.2", |
| 197 | + "vitest-fail-on-console": "^0.7.1", |
195 | 198 | "webpack": "^5.99.7",
|
196 | 199 | "webpack-bundle-analyzer": "^4.10.2",
|
197 | 200 | "webpack-cli": "^6.0.1",
|
|
204 | 207 | },
|
205 | 208 | "pnpm": {
|
206 | 209 | "patchedDependencies": {
|
207 |
| - |
208 |
| - |
| 210 | + |
209 | 211 | },
|
210 | 212 | "onlyBuiltDependencies": [
|
211 | 213 | "@swc/core",
|
|
0 commit comments