Skip to content

fix(devex): un-gate contracts vitest suite from root test pipeline - #816

Merged
h4yfans merged 1 commit into
mainfrom
contracts-test-gate
Jul 21, 2026
Merged

fix(devex): un-gate contracts vitest suite from root test pipeline#816
h4yfans merged 1 commit into
mainfrom
contracts-test-gate

Conversation

@h4yfans

@h4yfans h4yfans commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

Contracts (47 vitest files, ~1520 tests incl. sync-payloads) had no test script, so the suite was skipped by pnpm test and CI despite always passing when run directly.

Changes

  • packages/contracts/package.json: add test: vitest run
  • root package.json: add --filter=@memry/contracts to root test script

vitest is hoisted at node_modules/.bin/vitest — no new devDep. All 1523 tests pass.

Non-obvious turbo behavior

The test task has dependsOn: ["^test"] and app-core depends on @memry/contracts, so adding the leaf script alone auto-gates contracts via the dependency graph (turbo resolves cmd="vitest run" even without an explicit root filter). The root --filter is explicit first-class targeting, matching the typecheck convention.

Testing

  • pnpm --filter @memry/contracts test → 47 passed, 1523 tests passed
  • Root pipeline now includes contracts#test

Ready for review and merge.

packages/contracts had 47 vitest files (1520+ tests incl. sync-payloads) but no 'test' script, so they never ran in 'pnpm test' or CI. All tests pass when run directly.

Add 'test: vitest run' to packages/contracts/package.json (no new dep — vitest hoisted at root). Add --filter=@memry/contracts to root 'test' script for explicit first-class targeting, matching typecheck convention.

Turbo's test task has dependsOn: ["^test"], so adding the leaf script alone auto-gates contracts via app-core dependency. The root filter is belt-and-suspenders.
Copilot AI review requested due to automatic review settings July 21, 2026 18:24
@vercel

vercel Bot commented Jul 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated (UTC)
memry-docs Ignored Ignored Preview Jul 21, 2026 6:24pm
memrynote-landing Ignored Ignored Preview Jul 21, 2026 6:24pm

@github-actions github-actions Bot added bug Something isn't working dependencies labels Jul 21, 2026
@h4yfans
h4yfans marked this pull request as ready for review July 21, 2026 18:25
@h4yfans
h4yfans merged commit aa54b30 into main Jul 21, 2026
21 checks passed
@h4yfans
h4yfans deleted the contracts-test-gate branch July 21, 2026 18:25

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Ensures the @memry/contracts Vitest suite is executed as part of the workspace’s root pnpm test pipeline (so contracts tests aren’t silently skipped in CI/dev).

Changes:

  • Add test: "vitest run" script to packages/contracts.
  • Include --filter=@memry/contracts in the root test turbo invocation to explicitly target the contracts suite.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/contracts/package.json Adds a test script so contracts’ Vitest suite is runnable via standard workspace scripts and turbo task discovery.
package.json Updates the root test script to explicitly include @memry/contracts in the filtered turbo test run.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov

codecov Bot commented Jul 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants