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: integrate launchTestNode into current test suites #2579

Merged
merged 80 commits into from
Jul 19, 2024

Conversation

maschad
Copy link
Member

@maschad maschad commented Jun 21, 2024

Summary

This removes the getSetupContract ,generateTestWallet and seedTestWallet utilities in favour of the launchTestNode utility in the fuel-gauge test suite.

Builds on the work done in https://github.com/FuelLabs/fuels-ts/pull/2378/files to add browser compatibility for the fuel-gauge test suite.

This also refactors launchTestNode to accommodate for scripts, predicates, seeding wallets with multiple wallets and different asset types, and mocking more provider methods.

Checklist

  • I addedtests to prove my changes
  • I updated — all the necessary docs
  • I reviewed — the entire PR myself, using the GitHub UI
  • I described — all breaking changes and the Migration Guide

Notes

Running

pnpm test:filter packages/fuel-gauge/src/  

Should result in all tests passing.

Screenshot 2024-07-11 at 4 17 20 PM

Then running

prgrep fuel-core

should return clean as there are no processes running.

@github-actions github-actions bot added the chore Issue is a chore label Jun 21, 2024
@maschad maschad self-assigned this Jun 21, 2024
@petertonysmith94 petertonysmith94 added this to the 0.x mainnet milestone Jun 24, 2024
@maschad maschad added blocked Something is blocking development on this issue and removed blocked Something is blocking development on this issue labels Jul 18, 2024
Co-authored-by: Chad Nehemiah <chad.nehemiah94@gmail.com>
Co-authored-by: Anderson Arboleya <anderson@arboleya.me>
Copy link
Contributor

@nedsalk nedsalk left a comment

Choose a reason for hiding this comment

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

Thanks for the work!

Copy link
Contributor

@petertonysmith94 petertonysmith94 left a comment

Choose a reason for hiding this comment

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

🚀

Copy link
Member

@arboleya arboleya left a comment

Choose a reason for hiding this comment

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

:shipit:

Copy link
Contributor

Coverage Report:

Lines Branches Functions Statements
79.36%(-0.01%) 71.65%(+0%) 77.3%(+0%) 79.49%(-0.01%)
Changed Files:

Coverage values did not change👌.

@maschad maschad merged commit 538d8b6 into master Jul 19, 2024
20 checks passed
@maschad maschad deleted the mc/chore/integrate-launch-test-node branch July 19, 2024 14:30
nedsalk added a commit that referenced this pull request Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Issue is a chore
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Race Condition in E2E Tests Due to Shared Predicate UTXOs Integrate launchTestNode with fuel-gauge
6 participants