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

chore: add testing framework #3

Merged
merged 1 commit into from
Jan 7, 2025
Merged

Conversation

joepegler
Copy link
Collaborator

@joepegler joepegler commented Jan 7, 2025

PR-Codex overview

This PR focuses on enhancing the testing framework for blockchain interactions, integrating environment variable configurations, and improving support for paid transaction testing. It also includes updates to type definitions, utility functions, and workflow configurations.

Detailed summary

  • Deleted src/tests/e2e.test.ts.env.example.
  • Updated tsconfig.json to include tests.
  • Modified GitHub Actions workflows for installing dependencies and running tests.
  • Introduced environment variables for test configurations.
  • Added networkTest and setup utilities in tests/setup.ts and tests/globalSetup.ts.
  • Updated src/account-vendors/nexus/multichain-nexus.account.ts to use Chain[] instead of NonEmptyArray<Chain>.
  • Created new GitHub Actions workflow for paid tests.
  • Implemented getExplorerTxLink function in src/utils/explorer/explorer.ts.
  • Added Vitest configuration in tests/vitest.config.ts for coverage reporting.
  • Updated src/mee.service.ts warning messages.
  • Enhanced README.md with test setup instructions and prerequisites.
  • Refactored payGasWith function in src/utils/syntax/supertransaction-builder.util.ts.
  • Added unit tests in src/utils/explorer/explorer.test.ts and src/account-vendors/account.test.ts.
  • Expanded tests/README.md with detailed testing framework documentation.
  • Implemented network initialization logic in tests/config.ts.

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

Copy link

github-actions bot commented Jan 7, 2025

size-limit report 📦

Path Size
core (esm) 10.77 KB (-0.77% 🔽)
core (cjs) 13.06 KB (-0.97% 🔽)

@joepegler joepegler force-pushed the feat/testing_framework branch 4 times, most recently from 3582409 to 3991dc0 Compare January 7, 2025 16:57
@joepegler joepegler force-pushed the feat/testing_framework branch from 3991dc0 to 56b3ce8 Compare January 7, 2025 17:07
@joepegler joepegler merged commit 22ace00 into develop Jan 7, 2025
3 checks passed
@joepegler joepegler deleted the feat/testing_framework branch January 8, 2025 10:00
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