Nullean.Snapshots.Yaml
0.12.2
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Nullean.Snapshots.Yaml --version 0.12.2
NuGet\Install-Package Nullean.Snapshots.Yaml -Version 0.12.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Nullean.Snapshots.Yaml" Version="0.12.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Nullean.Snapshots.Yaml" Version="0.12.2" />
<PackageReference Include="Nullean.Snapshots.Yaml" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Nullean.Snapshots.Yaml --version 0.12.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Nullean.Snapshots.Yaml, 0.12.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Nullean.Snapshots.Yaml@0.12.2
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Nullean.Snapshots.Yaml&version=0.12.2
#tool nuget:?package=Nullean.Snapshots.Yaml&version=0.12.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Nullean.Snapshots (>= 0.12.2)
- Nullean.Snapshots.AwesomeAssertions (>= 0.12.2)
- SharpYaml (>= 3.17.0)
-
net11.0
- Nullean.Snapshots (>= 0.12.2)
- Nullean.Snapshots.AwesomeAssertions (>= 0.12.2)
- SharpYaml (>= 3.17.0)
NuGet packages (1)
Showing the top 1 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. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.18.1 | 41 | 11/24/2026 |
| 0.18.0 | 2,010 | 11/17/2026 |
| 0.17.0 | 131 | 11/17/2026 |
| 0.16.0 | 99 | 11/16/2026 |
| 0.15.0 | 265 | 11/16/2026 |
| 0.14.0 | 196 | 11/15/2026 |
| 0.13.0 | 95 | 11/14/2026 |
| 0.12.2 | 99 | 11/14/2026 |
| 0.12.1 | 93 | 11/12/2026 |
| 0.12.0 | 100 | 11/12/2026 |
| 0.11.0 | 341 | 11/11/2026 |
| 0.10.1 | 132 | 11/11/2026 |
| 0.10.0 | 101 | 11/11/2026 |
| 0.9.0 | 87 | 11/11/2026 |
| 0.8.1 | 261 | 11/11/2026 |
| 0.8.0 | 173 | 11/11/2026 |
| 0.7.0 | 239 | 11/10/2026 |
| 0.6.0 | 237 | 11/5/2026 |
| 0.5.0 | 95 | 11/5/2026 |
| 0.4.0 | 548 | 11/5/2026 |
Loading failed