Skip to content

plugin-editor test task red on main: vite.config.ts alias table missing @object-ui/providers #4194

Description

@yinlianghui

Finding

@object-ui/plugin-editor's test task is already red on main, independent of any in-flight change. Found by the #4178 dev while measuring turbo test inputs (flagged in PR #4188's body for triage; this is that card).

Mechanism: packages/plugin-editor/vite.config.ts aliases @object-ui/fields to source but does not alias @object-ui/providers. The package's heavy setup graph (root vitest.setup.tsx via setupFiles: ['../../vitest.setup.tsx']) reaches @object-ui/providers, so resolution fails:

Failed to resolve import "@object-ui/providers" from ...

This is masked in day-to-day CI because ci.yml runs the canonical root Vitest (sharded), not per-package turbo run test — the red only bites local turbo runs and any future CI use of the cached task.

Direction

This is the same defect family as #3240 (console-starter alias table missing 5 packages — @object-ui/providers among them), and #3240's ruling applies by analogy: complete the alias table to match what the code actually reaches, same shape as the existing entries, rather than trimming the reachable graph. Follow the ruled direction recorded on #3240; consider batching with #3240's quiet-window execution since both are alias-table completions.

Acceptance

  • Premise check first: reproduce the red on current main (pnpm turbo run test --filter=@object-ui/plugin-editor --force) before touching anything — if it has been fixed in the interim, close with the evidence.
  • Fix: add the missing alias entr(ies) so the setup graph resolves; check whether plugin-markdown (the other package reaching out only via setupFiles, per PR ci(turbo): derive the test inputs guard from each package's Vitest config program (#4178) #4188's derivation) has the same gap while in there.
  • Evidence: red-before / green-after of the same command, plus the root-Vitest invocation staying green (no regression in the canonical path).

Refs: #3240 (ruled direction), #4178 / PR #4188 (discovery context).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions