Skip to content

Fix vitest.config.mts for Vitest 4 compatibility#1265

Merged
xuyushun441-sys merged 1 commit intomainfrom
claude/fix-build-and-test
Apr 23, 2026
Merged

Fix vitest.config.mts for Vitest 4 compatibility#1265
xuyushun441-sys merged 1 commit intomainfrom
claude/fix-build-and-test

Conversation

@Claude
Copy link
Copy Markdown
Contributor

@Claude Claude AI commented Apr 23, 2026

The vitest configuration was using deprecated poolOptions.threads structure incompatible with Vitest 4, causing configuration warnings and potential test execution issues.

Changes

  • Migrated isolate and singleThread options from nested poolOptions.threads to top-level test configuration
  • Aligns with Vitest 4 migration guide requirement that all pool options are now top-level

Before:

pool: 'threads',
poolOptions: {
  threads: {
    isolate: false,
    singleThread: false,
  },
},

After:

pool: 'threads',
isolate: false,
singleThread: false,

This eliminates the deprecation warning and ensures proper test isolation behavior across the monorepo's test suite.

Agent-Logs-Url: https://github.com/objectstack-ai/objectui/sessions/5781bb47-fb58-45d3-b7b5-8b2f94537bf8

Co-authored-by: xuyushun441-sys <255036401+xuyushun441-sys@users.noreply.github.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 23, 2026

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

Project Deployment Actions Updated (UTC)
objectui-demo Ready Ready Preview, Comment Apr 23, 2026 1:53pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
objectui Ignored Ignored Apr 23, 2026 1:53pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants