[bug] Canvas: 21 test files (103 tests) failing on main — yaml-utils test asserts wrong YAML serialization format #269

Closed
opened 2026-05-10 09:06:31 +00:00 by core-qa · 0 comments
Member

Bug report

Severity: Medium
Location: canvas/src/components/tabs/config/__tests__/yaml-utils.test.ts

Symptom: On main (SHA 08a929c7), cd canvas && npm test produces 21 failed test files (103 tests). All failures trace to the same root cause: test expectations for YAML output use multi-space list-item format (- KEY) but the actual toYaml serializer produces different indentation.

Root cause: yaml-utils.test.ts line 188 asserts expect(out).toContain(" - KEY"). The actual serializer produces different output. This pattern repeats across 20 other test files that use workspace config YAML assertions.

Action required:

  1. Fix toYaml serializer to produce list-item format for required_env, OR
  2. Fix test expectations to match actual serializer output
  3. Apply same fix to all 20 other failing files

Environment: Canvas molecule-monorepo-canvas@0.1.0, Vitest v4.1.5. Reproduces on main AND staging — pre-existing, not a regression.

## Bug report **Severity:** Medium **Location:** `canvas/src/components/tabs/config/__tests__/yaml-utils.test.ts` **Symptom:** On `main` (SHA 08a929c7), `cd canvas && npm test` produces 21 failed test files (103 tests). All failures trace to the same root cause: test expectations for YAML output use multi-space list-item format (`- KEY`) but the actual `toYaml` serializer produces different indentation. **Root cause:** `yaml-utils.test.ts` line 188 asserts `expect(out).toContain(" - KEY")`. The actual serializer produces different output. This pattern repeats across 20 other test files that use workspace config YAML assertions. **Action required:** 1. Fix `toYaml` serializer to produce list-item format for `required_env`, OR 2. Fix test expectations to match actual serializer output 3. Apply same fix to all 20 other failing files **Environment:** Canvas `molecule-monorepo-canvas@0.1.0`, Vitest `v4.1.5`. Reproduces on main AND staging — pre-existing, not a regression.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#269