Skip to content

chore: adds snapshots to use the same blockchain state before each mav2 test#1378

Draft
linnall wants to merge 4 commits intomainfrom
linna/test-snapshots
Draft

chore: adds snapshots to use the same blockchain state before each mav2 test#1378
linnall wants to merge 4 commits intomainfrom
linna/test-snapshots

Conversation

@linnall
Copy link
Copy Markdown
Contributor

@linnall linnall commented Feb 20, 2025

Pull Request Checklist


PR-Codex overview

This PR focuses on enhancing the functionality of the defineInstance function in the .vitest/src/instances.ts file by adding a new method for creating test clients. Additionally, it updates the test suite in client.test.ts to handle snapshots for more effective testing.

Detailed summary

  • Added createTestClient import in .vitest/src/instances.ts.
  • Introduced getTestClient method to create a test client with the specified configuration.
  • Added snapshotId variable in client.test.ts to store snapshot IDs.
  • Implemented snapshot creation in beforeAll and restoration in beforeEach for tests.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 20, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
aa-sdk-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 3, 2025 8:11pm
aa-sdk-ui-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 3, 2025 8:11pm

@graphite-app
Copy link
Copy Markdown
Contributor

graphite-app Bot commented Feb 20, 2025

How to use the Graphite Merge Queue

Add the label graphite-merge-queue to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@linnall linnall changed the title chore: adds snapshots to use the same blockchain status before each mav2 test chore: adds snapshots to use the same blockchain state before each mav2 test Mar 3, 2025
Copy link
Copy Markdown
Contributor

@moldy530 moldy530 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh neato

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.

2 participants