property serializers | Node.js node:test module | Bun
BuildDocsReferenceGuidesBlogDiscord/
node:test/
default/
AssertSnapshotOptions/
serializersPserializers
Search the reference...
/
BuildDocsReferenceGuidesBlogDiscord/
node:test/
default/
AssertSnapshotOptions/
serializersPserializers
property
test.default.AssertSnapshotOptions.serializersserializers?: readonly (value: any) => any[]
An array of synchronous functions used to serialize value into a string. value is passed as the only argument to the first serializer function. The return value of each serializer is passed as input to the next serializer. Once all serializers have run, the resulting value is coerced to a string.
If no serializers are provided, the test runner's default serializers are used.
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlog Toolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →