namaka-0.1.0 is not a library.
namaka
Snapshot testing tool for Nix based on [haumea]
Usage
Usage: namaka <COMMAND>
Commands:
check Wrapper around `nix flake check` to prepare snapshots for failed tests [aliases: c]
review Review pending snapshots and selectively accept or reject them [aliases: r]
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
load
Type: { flake, dir?, ... } -> { ... }
Arguments:
-
flake:PathPath to the Nix flake.
-
(optional)
dir:StringPath to the testing directory relative to
flake, defaults totests.${flake}/${dir}tohaumea.load'ssrcoption.
Wrapper around haumea.load to loads snapshot tests from a directory.
See tests for how the directory should be structured.
Ignore the _snapshots, as it will be generated by namaka.
The rest of the arguments are passed directory to haumea.load,
with the exception of src, which always gets overwritten (ignored).
Related Tools
- Namaka is largely inspired by insta, a snapshot testing tool for Rust.
- Namaka is based on [haumea], which also has some testing functionalities.