Add test_snapshots/ to contracts/.gitignore. Add a CI step after cargo test that fails if any test_snapshots/*.json files exist, since their presence indicates a test is producing host errors. If a test legitimately produces a snapshot, it should be explicitly allowlisted.
Acceptance criteria:
contracts/.gitignore includes test_snapshots/
- CI step fails if any snapshot file exists after the test run
- Existing snapshot files removed from the repo in the PR adding this check
- A passing test suite produces no snapshot files
Add
test_snapshots/tocontracts/.gitignore. Add a CI step aftercargo testthat fails if anytest_snapshots/*.jsonfiles exist, since their presence indicates a test is producing host errors. If a test legitimately produces a snapshot, it should be explicitly allowlisted.Acceptance criteria:
contracts/.gitignoreincludestest_snapshots/