-
Hey :) I'm trying to figure out how to call |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Your best bet would be to create a TestClient with viem (https://viem.sh/docs/clients/test.html). Check out the examples here for instance: https://github.com/wagmi-dev/anvil.js/blob/main/examples/example-vitest/tests/utils.ts#L15-L38 There's no This should all work anaologues in Jest. |
Beta Was this translation helpful? Give feedback.
Your best bet would be to create a TestClient with viem (https://viem.sh/docs/clients/test.html).
Check out the examples here for instance: https://github.com/wagmi-dev/anvil.js/blob/main/examples/example-vitest/tests/utils.ts#L15-L38
There's no
increaseTime
in those examples, but there's atestClient.reset()
call here: https://github.com/wagmi-dev/anvil.js/blob/main/examples/example-vitest/tests/setup.ts#L8-L11This should all work anaologues in Jest.