Commit 0f7dead
committed
test(e2e): add zustand to ecosystem-ci
Real-world coverage for the @oxlint/migrate → sanitizer pipeline. zustand
ships a flat `eslint.config.mjs` that imports eslint-plugin-react,
eslint-plugin-react-hooks, eslint-plugin-import, eslint-plugin-jest-dom,
eslint-plugin-testing-library, and @vitest/eslint-plugin — the most
common React+testing plugin combo in the wild. After `vp migrate`:
- all six plugins are removed from devDependencies by the ESLint
ecosystem cleanup
- `@oxlint/migrate`'s output references those packages in `lint.jsPlugins`
- our sanitizer strips the now-orphan references
- vitest still runs the full 213-test suite (verified locally)
Originally tried vueuse for richer preset-expansion coverage via
`@antfu/eslint-config`, but it hit a separate `vite-plus-core`
config-resolution bug ("Class extends value undefined" inside
resolve-tsconfig) that we'd need to fix first. zustand is the smallest
real candidate that exercises the same sanitizer code paths without
that confounder.
The matrix command currently only invokes `vp run test:spec`. `vp run
test:lint` and `vp run test:format` both hit an upstream JS-config
loader bug ("Cannot use import statement outside a module" in
oxlint/js_config.js) that aborts before our merged config is even
consulted. Documented inline with a FIXME so the failures are visible
but don't block CI; the `|| true` should be removed once the loader is
fixed.
Verified locally:
- clone → patch-project (vp migrate): 2 config updates applied,
17 files imports rewritten, ESLint → Oxlint migrated, Prettier →
Oxfmt migrated, dependencies installed in 9.3s
- vp install --no-frozen-lockfile: clean
- vp test --run: 13 files, 213 tests passed1 parent 4eaba42 commit 0f7dead
2 files changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
229 | 248 | | |
230 | 249 | | |
231 | 250 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
139 | 144 | | |
140 | 145 | | |
0 commit comments