GGitHubVitest 5 (#4146)
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Vitest 5 (#4146) * Vitest 5 * legacy-peer-deps for now * add TODO * remove redundant comment * update stackTraceLimit comment * why have traces in two places....? * rc.3 * overrides * 5.0.0 * disable injectCjsGlobals | 5 天前 | |
Migrate from ESLint to oxlint (#4119) * Migrate from ESLint to oxlint Replace ESLint with oxlint for JS/TS linting, keeping ESLint only for markdown (`@eslint/markdown` uses ESLint's language plugin API, which oxlint does not support). `.oxlintrc.json` was generated by `@oxlint/migrate --type-aware --with-nursery` and carries over 545 rules at their original `warn` severity. `@eslint-react` and `sonarjs` are loaded as `jsPlugins`; `typescript`, `react` and `vitest` use oxlint's native implementations, so `typescript-eslint`, `eslint-plugin-react-hooks` and `@vitest/eslint-plugin` are no longer needed. Rules that could not be migrated: - the 13 React Compiler rules (`react-hooks/purity`, `preserve-manual-memoization`, …) — oxlint only ships these as an experimental bundled `react/react-compiler` rule - `@eslint-react/no-implicit-key`, `no-leaked-conditional-rendering` and `no-unused-props` — oxlint's JS plugin API cannot supply parser services, so these throw on every file - `@typescript-eslint/naming-convention`, `prefer-destructuring`, `no-unused-private-class-members`, `require-atomic-updates`, `one-var` Three suppressions were added for behavioural differences rather than real defects: `sonarjs/no-redundant-optional` cannot see `exactOptionalPropertyTypes` without type information, and `vitest/no-conditional-expect` flags a helper that is not a test block. The existing directive in `globals.d.ts` moved down a line because oxlint reports the index signature where ESLint reported the interface. `@eslint-react/component-hook-factories` was dropped: it does not exist in that plugin and was silently ignored by ESLint because it was `off`. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * remove references to .agents * yaml tweaks * fix double lint * settings tweaks * tweak eslint usage * disallow br * add CLAUDE.md symlink * re-enable typeAware * enable typeCheck * symlink -> file * nude sonarjs * tweak settings * tweak rules * fix CLAUDE.md * sort rules * review * use default categories settings * npm dedupe * npm audit fix * update packages, use ^ * couple tweaks --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> | 13 天前 | |
Vitest: add WebKit browser instance (#3866) * Run tests in FF * Fix editor test, use istanbul for coverage * Remove optimizeDeps * revert 1 change * Fix keyboard tests * Revert * Fix rowHeight tests * Fix focus in FF * headless * ESLint * Tweak focus logic * Fix test * Fix test in FF * Revert firefox workaround * try beta version * Revert "try beta version" This reverts commit a00f60e76ab8294bd4e40fd152db7cca98970bfd. * Try pinning vitest * Revert "Try pinning vitest" This reverts commit faafac22014571c876bf231d90b923a405d179d4. * Revrt timeout * try `maxWorkers` * `maxWorkers: 4,` * increate testTimeout * try beta * Fix grouping test * Fix a few tests * Format * Use stable version * -1 * -1 * -1 * -2 * tryl gridcell role * biome * Remove timeout * Does this work? * Set maxWorkers = 1 * revert a few changes * Revert 1 more change * one more * Revert a few more changes * Fix resizable test * Add speciial case for firefox CI * revert 1 change * Fix test * Revert accidental change * tweak * Try webkit * try `--with-deps` * Increase timeout * remove `maxWorkers` * fix resizable tests * skip a couple tests * revert timeout increase * log grid-template-columns * remove testTimeout * ignore lint * without deps? * split * don't list * like this? * tweak resizable tests * Update screenshots * increase timeout some more * fix resizable tests * idk * try fixing copy/paste tests * tweak apt-get * Revert "try fixing copy/paste tests" This reverts commit 1f3fd89fd69d5548147cc4b917d0c709be6620f1. * skip copy/paste tests in webkit+ci * tweak dragFill * fix a couple tests * try trimming apt config * sync `Install Playwright Browsers` steps * simplify --------- Co-authored-by: Nicolas Stepien <stepien.nicolas@gmail.com> Co-authored-by: nstepien <567105+nstepien@users.noreply.github.com> | 18 天前 |