Skip to content

Add Vitest-based mint integration tests and wire Blockfrost env vars into CI/Turbo#39

Merged
SynthLuvr merged 7 commits into
mainfrom
copilot/add-mint-transaction-script
Mar 2, 2026
Merged

Add Vitest-based mint integration tests and wire Blockfrost env vars into CI/Turbo#39
SynthLuvr merged 7 commits into
mainfrom
copilot/add-mint-transaction-script

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 2, 2026

  • Added Vitest and split test scripts into:

    • test:aiken (Aiken checks)
    • test:unit (Vitest)
    • test runs both via npm-run-all
  • Introduced an integration mint test (src/mint.test.ts) that builds a mint transaction end-to-end using:

    • @evolution-sdk/aiken-uplc evaluator
    • @evolution-sdk/scalus-uplc evaluator
      and asserts a CBOR transaction is produced.
  • Added IntegrationConfig to validate required env vars (BLOCKFROST_API_KEY, SEED_PHRASE).

  • Moved createScript into src/script.ts to share script creation logic between CLI (mint.ts) and tests.

  • Ensured env vars are available everywhere they’re needed:

    • CI job exports BLOCKFROST_API_KEY and SEED_PHRASE from GitHub Secrets
    • Turbo picks them up via globalEnv
  • Added vitest.config.ts with inline deps for the evaluator packages to avoid bundling/runtime issues.

Why

  • Provide a repeatable integration-level check that our mint transaction building works with both evaluators, catching regressions earlier.
  • Make CI/Turbo execution consistent by explicitly propagating required Blockfrost/wallet env vars.

Notes

  • The mint test expects funded wallet UTxOs via SEED_PHRASE + BLOCKFROST_API_KEY and will fail fast with a clear message if they’re missing.

…valuators

Co-authored-by: SynthLuvr <131367121+SynthLuvr@users.noreply.github.com>
Comment thread src/inputs.ts
Comment thread src/inputs.ts
Comment thread src/mint.test.ts
Comment thread src/mint.test.ts
Comment thread src/script.ts
Comment thread src/script.ts
Copilot AI changed the title [WIP] Add mint transaction script functionality Add vitest integration tests for mint transaction with Aiken and Scalus UPLC evaluators Mar 2, 2026
…g env vars

Co-authored-by: SynthLuvr <131367121+SynthLuvr@users.noreply.github.com>
Copilot AI changed the title Add vitest integration tests for mint transaction with Aiken and Scalus UPLC evaluators Add mint transaction integration tests with Aiken and Scalus UPLC evaluators Mar 2, 2026
Co-authored-by: SynthLuvr <131367121+SynthLuvr@users.noreply.github.com>
Copilot AI changed the title Add mint transaction integration tests with Aiken and Scalus UPLC evaluators Add secrets to CI workflow for integration tests Mar 2, 2026
Co-authored-by: SynthLuvr <131367121+SynthLuvr@users.noreply.github.com>
Copilot AI changed the title Add secrets to CI workflow for integration tests Add secrets to CI workflow and turbo config Mar 2, 2026
@SynthLuvr SynthLuvr marked this pull request as ready for review March 2, 2026 15:49
@SynthLuvr SynthLuvr changed the title Add secrets to CI workflow and turbo config Add Vitest-based mint integration tests and wire Blockfrost env vars into CI/Turbo Mar 2, 2026
@SynthLuvr SynthLuvr merged commit ed6a024 into main Mar 2, 2026
1 check passed
@SynthLuvr SynthLuvr deleted the copilot/add-mint-transaction-script branch March 2, 2026 15:50
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