Forest Logo
search
package_2

jest-snapshot-serializer-raw

By @roblox

Roblox

Mirrored

jest-snapshot-serializer-raw

Upstream: https://github.com/ikatyang/jest-snapshot-serializer-raw/tree/v1.2.0

A snapshot serializer that prints raw strings without quoting or escaping. Use wrap(s) on a string in your test to opt that string into raw serialization.

local rawSerializer = require(Packages.JestSnapshotSerializerRaw)
expect.addSnapshotSerializer(rawSerializer)

expect(rawSerializer.wrap("hello\nworld")).toMatchSnapshot()

Package Details

Install command (Click to copy)


Version

3.20.0

License

MIT

check_circle

Safe for commercial use

infoThe package archive does not include its license text; the license is declared in its manifest metadata.

Automated license review — not legal advice.