Skip to content

v0.2.26: modernise the test stack and drop its dead weight - #290

Merged
divijg19 merged 1 commit into
mainfrom
update
Nov 3, 2026
Merged

divijg19 merged 1 commit into
mainfrom
update

Conversation

@divijg19

@divijg19 divijg19 commented Nov 3, 2026

Copy link
Copy Markdown
Owner

The vitest config carried a configLoader: 'native' warning on every run and a pair of esbuild options the oxc transformer ignored outright, plus a disabled Storybook project whose only purpose was a stale comment. All of it is gone:

  • import.meta.dirname replaces the hand-rolled __dirname guard, which is the form the native config loader supports.
  • The dead esbuild blocks are removed; oxc handles JSX natively.
  • The disabled Storybook project block is removed; nothing ran it and the scaffolding it referenced (vitest.shims.d.ts, @vitest/browser, @vitest/ui) is deleted with it. Storybook itself is untouched.

pool stays at the default rather than vmThreads: vm pools cannot inline the CJS three family that @react-three/drei requires (the suite's CJS interop throws "Cannot use import statement outside a module" under them), and isolate: false reuses one jsdom for everything but leaks state and failed 11 tests across 4 files. The ~16.7s of worker startup the reporter estimates remains unclaimed, and THREE_CJS_DEPRECATED still prints once -- both are properties of the upstream three/drei CJS entries, not of the config.

Verified unpiped by exit code: biome check, type-check, test:ci (269 tests, 35 files; coverage unchanged and above thresholds), build, check:bundle within budget, and test:e2e:smoke (server raised, smoke passed, server stopped).

The vitest config carried a `configLoader: 'native'` warning on every run and a
pair of esbuild options the oxc transformer ignored outright, plus a disabled
Storybook project whose only purpose was a stale comment. All of it is gone:

- `import.meta.dirname` replaces the hand-rolled `__dirname` guard, which is the
  form the native config loader supports.
- The dead `esbuild` blocks are removed; oxc handles JSX natively.
- The disabled Storybook project block is removed; nothing ran it and the
  scaffolding it referenced (`vitest.shims.d.ts`, `@vitest/browser`,
  `@vitest/ui`) is deleted with it. Storybook itself is untouched.

`pool` stays at the default rather than `vmThreads`: vm pools cannot inline the
CJS `three` family that `@react-three/drei` requires (the suite's CJS interop
throws "Cannot use import statement outside a module" under them), and
`isolate: false` reuses one jsdom for everything but leaks state and failed
11 tests across 4 files. The ~16.7s of worker startup the reporter estimates
remains unclaimed, and `THREE_CJS_DEPRECATED` still prints once -- both are
properties of the upstream three/drei CJS entries, not of the config.

Verified unpiped by exit code: `biome check`, `type-check`, `test:ci`
(269 tests, 35 files; coverage unchanged and above thresholds), `build`,
`check:bundle` within budget, and `test:e2e:smoke` (server raised, smoke
passed, server stopped).
@vercel

vercel Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
lys Ready Ready Preview Nov 3, 2026 4:27pm UTC

@divijg19 divijg19 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v0.2.26: modernise the test stack and drop its dead weight

@divijg19
divijg19 merged commit cf9b804 into main Nov 3, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — f23975d2 Deployed Nov 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant