This bug does not appear to affect the erlang target.
Snapshots are incorrectly identified as invalid when testing using birdie 1.1.0. Error message:
❌ It looks like "./birdie_snapshots/a_test.accepted"
is not a valid snapshot.
This might happen when someone modifies its content.
Try deleting the snapshot and recreating it.
🐦⬛ Birdie snapshot test failed
❌
birdie_bug_test.a_test:14: Error:
False
should equal
True
1 tests, 1 failures
The snapshot file's contents is actually correct since it works fine on the erlang target:
---
version: 1.1.0
title: a test
file: ./test/birdie_bug_test.gleam
test_name: a_test
---
a test
This bug does not appear to affect the erlang target.
Snapshots are incorrectly identified as invalid when testing using birdie
1.1.0
. Error message:The snapshot file's contents is actually correct since it works fine on the erlang target:
Reproduction
Test module:
Steps to reproduce:
gleam test --target javascript
(works fine)gleam run -m birdie -- accept-all
(works fine)gleam test --target javascript
(error occurs)