Repository navigation
v8.1.0 #3499
novemberborn
started this conversation in
General
v8.1.0
#3499
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Code block formatting for string snapshots
This release adds an overload for
t.snapshot():t.snapshot(expected, {formatAsCodeBlock}, message?)The overload is only accepted when
expectedis a string. The string is stored verbatim and rendered as a fenced code block in the resulting.snap.mdfile. SetformatAsCodeBlocktotruefor a generic code block, or a non-empty language identifier string for syntax highlighting:The resulting snapshots can only be read with AVA 8.1 or newer, but snapshots that do not contain code blocks are backwards compatible. And existing snapshots can still be read, of course.
Performance improvements
What's Changed
Full Changelog: v8.0.2...v8.1.0
This discussion was created from the release v8.1.0.
All reactions