Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: costs assertions #13

Merged
merged 1 commit into from
Dec 20, 2024
Merged

test: costs assertions #13

merged 1 commit into from
Dec 20, 2024

Conversation

hugocaillard
Copy link
Collaborator

Costs are enabled with

"test": "vitest run -- --costs",

Then

    const { costs } = simnet.callReadOnlyFn(
      "counter",
      "get-count",
      [],
      address1,
    );
    expect(costs?.total.readCount).toBe(4);
    expect(costs?.total.writeCount).toBe(0);

@hugocaillard hugocaillard force-pushed the tests/costs-assertions branch from face169 to bd3be86 Compare December 19, 2024 17:30
Copy link

codecov bot commented Dec 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@hugocaillard hugocaillard merged commit 3f9fa0f into main Dec 20, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant