Skip to content

Generated tests: schema-driven contract integration for emitted apps#34

Merged
snissn merged 1 commit into
masterfrom
feat/generated-contract-tests
Feb 5, 2026
Merged

Generated tests: schema-driven contract integration for emitted apps#34
snissn merged 1 commit into
masterfrom
feat/generated-contract-tests

Conversation

@snissn
Copy link
Copy Markdown
Contributor

@snissn snissn commented Feb 5, 2026

Resolves #29.

Scope implemented

  • Upgraded generated app contract tests from static smoke-only checks to schema-driven on-chain integration behavior tests.
  • th generate --with-tests now emits ui/tests/contract/integration.mjs that:
    • compiles generated ../contracts/App.sol,
    • deploys to local anvil,
    • runs per-collection behavior checks for create/list/get,
    • runs update/delete/transfer checks when enabled,
    • enforces paid-create failure/success behavior for payment-enabled collections.
  • Generated app test scripts now run the integration harness by default for test:contract.
  • Added repo integration test that proves emitted generated-app contract tests run for canonical job-board output.

Validation

  • pnpm test
  • pnpm test:integration
  • pnpm typecheck

Resolve issue #29 by upgrading --with-tests output to include schema-driven on-chain contract integration tests and validating emitted tests against canonical job-board output.
@snissn snissn merged commit 92f869a into master Feb 5, 2026
2 checks passed
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.

Generated App Tests: emit schema-driven contract integration tests

1 participant