Skip to content

test: render snapshot descriptions as yaml literal blocks - #691

Merged
ivov merged 1 commit into
mainfrom
snapshot-literal-blocks
Jun 11, 2026
Merged

ivov merged 1 commit into
mainfrom
snapshot-literal-blocks

Conversation

@ivov

@ivov ivov commented Jun 11, 2026

Copy link
Copy Markdown
Owner

Snapshot headers now store snapshot test input as a readable YAML literal block instead of a single escaped line. This uses insta's new INSTA_YAML_BLOCK_STYLE option (mitsuhiko/insta#851), which I contributed upstream and was released today.

Before:

description: "\nstruct Counter {\n  value: int,\n}\n"

After:

description: |
  
  struct Counter {
    value: int,
  }

The e2e_suite harvester now parses the block form when re-running emitted programs, and four orphaned snapshots left behind by test renames are deleted.

@ivov
ivov merged commit ff2c70a into main Jun 11, 2026
15 checks passed
@ivov ivov mentioned this pull request Jun 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Released in lisette-v0.3.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant