Skip to content

Commit 31d9426

Browse files
Renovate Botjimsynz
authored andcommitted
chore(deps): update dependency mimic to v2 (#148)
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [mimic](https://hex.pm/packages/mimic) ([source](https://github.com/edgurgel/mimic)) | dev | major | `~> 1.12` -> `~> 2.0` | --- ### Release Notes <details> <summary>edgurgel/mimic (mimic)</summary> ### [`v2.1.1`](https://github.com/edgurgel/mimic/blob/HEAD/CHANGELOG.md#211-2025-09-20) [Compare Source](edgurgel/mimic@v2.1.0...v2.1.1) - Don't remove behaviour\_info/1 from behaviour modules by [@&#8203;escobera](https://github.com/escobera) in [#&#8203;105](edgurgel/mimic#105) ### [`v2.1.0`](https://github.com/edgurgel/mimic/blob/HEAD/CHANGELOG.md#210-2025-08-31) [Compare Source](edgurgel/mimic@v2.0.2...v2.1.0) - feat: Usage rules by [@&#8203;pcharbon70](https://github.com/pcharbon70) in [#&#8203;102](edgurgel/mimic#102) - fix: define replaced Elixir module macros using defmacro by [@&#8203;yastanotheruser](https://github.com/yastanotheruser) in [#&#8203;104](edgurgel/mimic#104) ### [`v2.0.2`](https://github.com/edgurgel/mimic/blob/HEAD/CHANGELOG.md#202-2025-08-12) [Compare Source](edgurgel/mimic@v2.0.1...v2.0.2) - fix: Mimic.Module compilation when no options are stored. [#&#8203;101](edgurgel/mimic#101) ### [`v2.0.1`](https://github.com/edgurgel/mimic/blob/HEAD/CHANGELOG.md#201-2025-08-08) [Compare Source](edgurgel/mimic@v2.0.0...v2.0.1) - Bump `ham` requirement ### [`v2.0.0`](https://github.com/edgurgel/mimic/blob/HEAD/CHANGELOG.md#200-2025-07-13) [Compare Source](edgurgel/mimic@v1.12.0...v2.0.0) #### Breaking changes The code below would call the original `Calculator.add/2` when all expectations were fulfilled. ```elixir Calculator |> expect(:add, fn _, _ -> :expected1 end) |> expect(:add, fn _, _ -> :expected2 end) assert Calculator.add(1, 1) == :expected1 assert Calculator.add(1, 1) == :expected2 assert Calculator.add(1, 1) == 2 ``` Now with Mimic 2 this will raise: ```elixir Calculator |> expect(:add, fn _, _ -> :expected1 end) |> expect(:add, fn _, _ -> :expected2 end) assert Calculator.add(1, 1) == :expected1 assert Calculator.add(1, 1) == :expected2 Calculator.add(1, 1) ``` ### [`v1.12.0`](https://github.com/edgurgel/mimic/releases/tag/v1.12.0): Mimic 1.12.0 [Compare Source](edgurgel/mimic@v1.11.2...v1.12.0) #### What's Changed - Mimic.calls/3 to list args from each call by [@&#8203;brentjanderson](https://github.com/brentjanderson) in [#&#8203;94](edgurgel/mimic#94) #### New Contributors - [@&#8203;brentjanderson](https://github.com/brentjanderson) made their first contribution in [#&#8203;94](edgurgel/mimic#94) **Full Changelog**: <edgurgel/mimic@v1.11.2...v1.12.0> </details> --- ### Configuration 📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) in timezone Pacific/Auckland, Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) in timezone Pacific/Auckland. 🚦 **Automerge**: Disabled because a matching PR was automerged previously. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4zMi4wIiwidXBkYXRlZEluVmVyIjoiNDEuMTI0LjAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbInJlbm92YXRlIl19--> Reviewed-on: https://harton.dev/james/wafer/pulls/148 Co-authored-by: Renovate Bot <[email protected]> Co-committed-by: Renovate Bot <[email protected]>
1 parent 85eeea4 commit 31d9426

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ defmodule Wafer.MixProject do
7070
{:ex_check, "~> 0.16", devtest},
7171
{:ex_doc, ">= 0.0.0", devtest},
7272
{:git_ops, "~> 2.4", devtest},
73-
{:mimic, "~> 1.12", only: :test},
73+
{:mimic, "~> 2.0", only: :test},
7474
{:mix_audit, "~> 2.1", devtest}
7575
]
7676
end

0 commit comments

Comments
 (0)