Nullean.Snapshots.Yaml
0.24.1
dotnet add package Nullean.Snapshots.Yaml --version 0.24.1
NuGet\Install-Package Nullean.Snapshots.Yaml -Version 0.24.1
<PackageReference Include="Nullean.Snapshots.Yaml" Version="0.24.1" />
<PackageVersion Include="Nullean.Snapshots.Yaml" Version="0.24.1" />
<PackageReference Include="Nullean.Snapshots.Yaml" />
paket add Nullean.Snapshots.Yaml --version 0.24.1
#r "nuget: Nullean.Snapshots.Yaml, 0.24.1"
#:package Nullean.Snapshots.Yaml@0.24.1
#addin nuget:?package=Nullean.Snapshots.Yaml&version=0.24.1
#tool nuget:?package=Nullean.Snapshots.Yaml&version=0.24.1
Nullean.Snapshots.Yaml

YAML snapshots and inline YAML assertions for Nullean.Snapshots: stored as written, comments and layout kept, compared as trees with the YAML 1.2 core schema, differences pointing at line and column.
Install
dotnet add package Nullean.Snapshots.Yaml
Quick start
using AwesomeAssertions;
using Nullean.Snapshots.Trees;
using Nullean.Snapshots.Yaml;
public class ManifestTests
{
[Test]
public void Renders() =>
Manifest.Render().Should().MatchYamlSnapshot(); // .verified.yml, stored as written
[Test]
public void IgnoresVersion() =>
Manifest.Render().Should().MatchYamlSnapshot(
new TreeDiffOptions { IgnorePaths = ["$.metadata.resourceVersion"] });
[Test]
public void Inline() =>
Manifest.Render().Should().BeYaml("items: [{id: 1}]");
}
- Anchors and merge keys are resolved before comparing;
MapOrder.Significantmakes key order count. - Use the text
MatchSnapshotinstead when formatting or comments are what you are testing.
Learn more
- Documentation: https://snapshots.nullean.net
- YAML snapshots: https://snapshots.nullean.net/formats/yaml/
- Source and issues: https://github.com/nullean/snapshots
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net11.0 is compatible. |
-
net10.0
- Nullean.Snapshots (>= 0.24.1)
- Nullean.Snapshots.AwesomeAssertions (>= 0.24.1)
- SharpYaml (>= 3.18.0)
-
net11.0
- Nullean.Snapshots (>= 0.24.1)
- Nullean.Snapshots.AwesomeAssertions (>= 0.24.1)
- SharpYaml (>= 3.18.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Nullean.Snapshots.Yaml:
| Package | Downloads |
|---|---|
|
Nullean.Snapshots.Objects
Object-graph snapshots for Nullean.Snapshots: any object dumped by reflection as YAML, cycles and unordered sets handled, so a new property shows up as a diff by path. |
|
|
Nullean.Snapshots.Relevance
Search-relevance snapshots for Nullean.Snapshots, on judy: run a judgement set against your search, fail on a gate, and keep the scorecard and per-query ranks as a snapshot that tolerates noise and fails on a real regression. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.24.1 | 0 | 12/3/2026 |
| 0.24.0 | 0 | 12/3/2026 |
| 0.23.0 | 0 | 12/3/2026 |
| 0.22.0 | 0 | 12/3/2026 |
| 0.21.0 | 0 | 12/3/2026 |
| 0.20.0 | 0 | 12/3/2026 |
| 0.19.0 | 49 | 12/2/2026 |
| 0.18.1 | 127 | 11/24/2026 |
| 0.18.0 | 2,783 | 11/17/2026 |
| 0.17.0 | 135 | 11/17/2026 |
| 0.16.0 | 103 | 11/16/2026 |
| 0.15.0 | 269 | 11/16/2026 |
| 0.14.0 | 202 | 11/15/2026 |
| 0.13.0 | 100 | 11/14/2026 |
| 0.12.2 | 104 | 11/14/2026 |
| 0.12.1 | 96 | 11/12/2026 |
| 0.12.0 | 102 | 11/12/2026 |
| 0.11.0 | 346 | 11/11/2026 |
| 0.10.1 | 135 | 11/11/2026 |
| 0.10.0 | 107 | 11/11/2026 |