#archetypes #hello-world #committed

archetype

Lightweight golden testing library

2 unstable releases

0.2.0 Nov 6, 2023
0.1.0 Nov 4, 2023

#10 in #archetypes

Download history 20/week @ 2025-01-08 36/week @ 2025-01-15 17/week @ 2025-01-22 24/week @ 2025-01-29 67/week @ 2025-02-05 92/week @ 2025-02-12 60/week @ 2025-02-19 50/week @ 2025-02-26 28/week @ 2025-03-05 26/week @ 2025-03-12 25/week @ 2025-03-19 70/week @ 2025-03-26 33/week @ 2025-04-02 4/week @ 2025-04-09 6/week @ 2025-04-16

118 downloads per month

MIT license

7KB
78 lines

Archetype is a lightweight snapshot testing library with builtin diffing and test generation. It is largely used for golden testing JSON output, but can be instrumented to verify other types of output so long as the output goes to UTF-8 or raw bytes.


archetype

noun
the original pattern or model of which all things of the same type are representations or copies : PROTOTYPE
also : a perfect example

Dependencies

~0.8–1.7MB
~36K SLoC