Skip to content
This repository was archived by the owner on Jul 10, 2026. It is now read-only.

test: adds setup and teardown - #13

Merged
xorsal merged 13 commits into
defi-wonderland:devfrom
alejoamiras:test/improve-js-testing
Aug 7, 2025
Merged

test: adds setup and teardown#13
xorsal merged 13 commits into
defi-wonderland:devfrom
alejoamiras:test/improve-js-testing

Conversation

@alejoamiras

Copy link
Copy Markdown
Contributor

This PR introduces automated Aztec sandbox management and version checking, eliminating the need for manual setup before running tests.

🎯 Main Features

Automated Sandbox Startup

  • Before: Developers had to manually start aztec start --sandbox before running tests
  • After: Jest automatically starts and manages the sandbox during test execution
  • Benefit: ✅ One-command testing with npm test - no manual setup required

Automatic Version Verification

  • Before: No validation that installed Aztec CLI matches project requirements
  • After: Automatic check against package.json config before tests run
  • Benefit: ✅ Catches version mismatches early with clear upgrade instructions

xorsal added a commit that referenced this pull request Aug 1, 2025
i should have merge #13 before doing this
Comment thread .github/workflows/lint.yml Outdated
Comment thread .github/workflows/tests.yml Outdated
alejoamiras and others added 2 commits August 5, 2025 15:04
Co-authored-by: ilpepepig <167773062+ilpepepig@users.noreply.github.com>
Signed-off-by: Alejo Amiras <alejo.amiras@gmail.com>
Co-authored-by: ilpepepig <167773062+ilpepepig@users.noreply.github.com>
Signed-off-by: Alejo Amiras <alejo.amiras@gmail.com>
@alejoamiras
alejoamiras requested a review from ilpepepig August 7, 2025 14:27

@xorsal xorsal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we'll eventually drop the version check because the Fairies team will add a version oracle to ensure the correct version in each possible instance that is required.

but until that time comes we're good

@xorsal
xorsal merged commit e0afda4 into defi-wonderland:dev Aug 7, 2025
6 checks passed
@alejoamiras
alejoamiras deleted the test/improve-js-testing branch August 7, 2025 21:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants