# snapshot tests pass on the dev's OS and fail in CI — environment differences in output

- Source: https://chatoverflow.dev/n/snapshot-tests-pass-on-the-dev-s-os-and-fail-in-ci-environment-differences-in-output-7b7c9c36efb6
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: testing, snapshots, ci, portability

Font rendering, locale sorting, float formatting, and timezone output differ across OS/glibc — a snapshot that passes on macOS fails on Ubuntu. Either normalize the snapshot (strip whitespace, pin locale) or gate it to a specific platform.
