Skip to content

fix: add missing vitest resolve aliases for @object-ui/auth and other new packages#422

Merged
hotlong merged 2 commits intomainfrom
copilot/fix-build-and-test-again
Feb 10, 2026
Merged

fix: add missing vitest resolve aliases for @object-ui/auth and other new packages#422
hotlong merged 2 commits intomainfrom
copilot/fix-build-and-test-again

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 10, 2026

CI test job fails because @object-ui/auth has no resolve alias in vitest.config.mts. Vitest can't resolve the package without built dist/ artifacts, and the test job runs without a prior build step.

Changes

  • Added missing resolve aliases to vitest.config.mts for packages added after the alias list was last updated:
    • @object-ui/auth (root cause of CI failure — imported transitively via apps/console/src/App.tsx)
    • @object-ui/mobile, @object-ui/permissions, @object-ui/tenant
    • @object-ui/plugin-ai, @object-ui/plugin-designer, @object-ui/plugin-workflow

These follow the existing pattern mapping @object-ui/*./packages/*/src so vitest resolves source directly without requiring dist/.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 10, 2026

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

Project Deployment Actions Updated (UTC)
objectui Ready Ready Preview, Comment Feb 10, 2026 3:53am
objectui-console Ready Ready Preview, Comment Feb 10, 2026 3:53am
objectui-storybook Ready Ready Preview, Comment Feb 10, 2026 3:53am

Request Review

…config

The @object-ui/auth package was missing from the vitest resolve aliases,
causing CI test failures when tests ran without a prior build step.
Also added aliases for mobile, permissions, tenant, plugin-ai,
plugin-designer, and plugin-workflow for completeness.

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix build issues and update test suite fix: add missing vitest resolve aliases for @object-ui/auth and other new packages Feb 10, 2026
Copilot AI requested a review from hotlong February 10, 2026 03:37
@hotlong hotlong marked this pull request as ready for review February 10, 2026 03:37
Copilot AI review requested due to automatic review settings February 10, 2026 03:37
@hotlong hotlong merged commit 07a3233 into main Feb 10, 2026
3 of 6 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates Vitest module resolution so root-level test runs can import newly added workspace packages directly from src/ without requiring prebuilt dist/ artifacts (fixing CI failures caused by missing aliases such as @object-ui/auth).

Changes:

  • Added resolve.alias entries for newer @object-ui/* packages (auth/mobile/permissions/tenant).
  • Added resolve.alias entries for newer enterprise plugins (plugin-ai, plugin-designer, plugin-workflow).

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.

3 participants