Skip to content

[pull] main from tinacms:main#211

Merged
pull[bot] merged 1 commit intocode:mainfrom
tinacms:main
May 11, 2026
Merged

[pull] main from tinacms:main#211
pull[bot] merged 1 commit intocode:mainfrom
tinacms:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented May 11, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

…y snapshot tests (#6768)

## Summary

Fixes the flaky `tests/is-title` snapshot test (and the same latent bug
in `tests/is-body`) seen in CI runs like
[actions/runs/25143506962](https://github.com/tinacms/tinacms/actions/runs/25143506962/job/73698320188?pr=6763).

- **Root cause:** `OutputBridge.put()` in `tests/util.ts` called
`super.put()` (a `fs.outputFile` wrapper) without `await`, leaving the
disk write fire-and-forget. The subsequent
`toMatchFileSnapshot('out.md')` could read the file before the write
finished — most likely to flake on macOS CI under load.
- Added `await` to `super.put()` in `OutputBridge` (the actual fix).
- Also added `await` to all 63 `toMatchFileSnapshot` calls across the
test suite. Vitest 2.x auto-awaits them at test end, but without
explicit `await` there are no ordering guarantees, and Vitest 3 will
reject un-awaited assertions outright.

## Test plan

- [x] `pnpm vitest run tests/is-title tests/is-body` passes
- [x] Full `pnpm vitest run tests/` passes (31 files, 99 tests)
- [ ] Re-run the previously flaky CI job to confirm

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: JackDevAU <57518417+JackDevAU@users.noreply.github.com>
Co-authored-by: JackDevAU <jpr178@live.com.au>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@pull pull Bot locked and limited conversation to collaborators May 11, 2026
@pull pull Bot added the ⤵️ pull label May 11, 2026
@pull pull Bot merged commit 8e526bb into code:main May 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant