11# 📝 Calque — Snapshot testing for Elixir
22
33[ ![ Hex.pm Package] ( https://img.shields.io/hexpm/v/calque.svg )] ( https://hex.pm/packages/calque )
4- [ ![ HexDocs] ( https://img.shields.io/badge/HexDocs-blue.svg )] ( https://hexdocs.pm/calque/1.3.1 /Calque.html )
4+ [ ![ HexDocs] ( https://img.shields.io/badge/HexDocs-blue.svg )] ( https://hexdocs.pm/calque/1.4.0 /Calque.html )
55> ** /kalk/** — “Calque” is a French word meaning * tracing paper* or * copy* .
66> Like its name, this library lets you trace your program’s output and compare it over time.
77
@@ -22,7 +22,7 @@ Add Calque as a test dependency and fetch it:
2222``` elixir
2323def deps do
2424 [
25- {:calque , " ~> 1.3.1 " , only: :test }
25+ {:calque , " ~> 1.4.0 " , only: [ :test , :dev ] }
2626 ]
2727end
2828```
@@ -38,15 +38,15 @@ You decide how to turn your value into a string before creating a snapshot, givi
3838``` elixir
3939defmodule MyApp .GreetingTest do
4040 use ExUnit .Case , async: true
41-
41+
4242 # Example using check/2
4343 test " renders a friendly greeting" do
4444 %{hello: " world" , nums: [1 , 2 , 3 , 4 ]}
4545 |> inspect (pretty: true )
4646 |> Calque .check (" greeting renders correctly" )
4747 end
4848
49- # Example using check/1
49+ # Example using check/1
5050 test " say hi to baloo" do
5151 # The title is automatically set to "say hi to baloo"
5252 " Hi baloo! You are my favorite bear."
0 commit comments