Skip to content

test(sdk): remove placeholder specs and unused fixtures - #1214

Merged
collinsezedike merged 1 commit into
drydocs:mainfrom
dynamicgram11-cmyk:fix/issue-1055-bug-three-of-the-four-spec-files-in-packages
Oct 25, 2026
Merged

collinsezedike merged 1 commit into
drydocs:mainfrom
dynamicgram11-cmyk:fix/issue-1055-bug-three-of-the-four-spec-files-in-packages

Conversation

@dynamicgram11-cmyk

@dynamicgram11-cmyk dynamicgram11-cmyk commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The placeholder specs in packages/sdk did not exercise production code. The behaviors they named are covered where the real modules live in packages/stellar-sdk-helpers, so this removes the fake suites and the fixtures only they used.

Changes

  • Removed packages/sdk/src/blend-adapter.test.ts, tx-submission.test.ts, and keeper-retry.test.ts.
  • Removed the unused packages/sdk/src/fixtures directory.
  • Removed the accidental branch_structure.json.

Verification

  • pnpm --filter @meridian/sdk test: 61 passed, coverage 97.75% statements / 95.74% branches / 96.66% functions / 98.73% lines
  • pnpm --filter @meridian/sdk typecheck
  • pnpm --filter @meridian/sdk lint

Coverage for the real modules remains in packages/stellar-sdk-helpers/src/blend.test.ts, keeper-tx.test.ts, keeper-retry.test.ts, and keeper-state.test.ts. The removed files contained no production assertions, so no behavior that was previously tested becomes untested.

Closes #1055

@vercel

vercel Bot commented Oct 20, 2026

Copy link
Copy Markdown

@dynamicgram11-cmyk is attempting to deploy a commit to the Collins' projects Team on Vercel.

A member of the Team first needs to authorize it.

@collinsezedike collinsezedike left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@dynamicgram11-cmyk the intent matches #1055, but the rewrite does not compile or pass. blend-adapter.test.ts renames VAULT_STATE to VAUL_STATE on two lines, so the reference is undefined. tx-submission.test.ts imports keeperFeeConfig and maxFeeAttempt, neither of which packages/stellar-sdk-helpers/src/keeper-tx.ts exports; that module exports KEEPER_BASE_FEE_STROOPS, KEEPER_MAX_FEE_STROOPS, and DEFAULT_FEE_ESCALATION. Its keeperFeeForAttempt also takes (attempt, baseFee, config?), so the one-argument calls pass no base fee. The commit subject exceeds 72 characters and includes the issue number, which fails the required Commit Messages check. Fix the typo, use the real exports and signature, and amend the subject.

Comment thread packages/sdk/src/blend-adapter.test.ts Outdated
it("parses the recorded vault state fixture", () => {
expect(VAULT_STATE.id).toBe("vault-0");
expect(VAULT_STATE.totalAssets).toBe(10000000);
expect(VAUL_STATE.id).toBe("vault-0");

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

VAUL_STATE is undefined here and on the next line; restore VAULT_STATE.

Comment thread packages/sdk/src/tx-submission.test.ts Outdated
import { describe, it, expect } from "vitest";
import {
keeperFeeForAttempt,
keeperFeeConfig,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

keeperFeeConfig is not exported by keeper-tx.ts. That module exports DEFAULT_FEE_ESCALATION (with maxFee and multiplier) and KEEPER_BASE_FEE_STROOPS.

Comment thread packages/sdk/src/tx-submission.test.ts Outdated
import {
keeperFeeForAttempt,
keeperFeeConfig,
maxFeeAttempt,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

maxFeeAttempt is not exported by keeper-tx.ts. Derive it in the test from DEFAULT_FEE_ESCALATION, or export it from the module.

Comment thread packages/sdk/src/tx-submission.test.ts Outdated
const { baseFee, multiplier, maxFee } = keeperFeeConfig;

it("returns the base fee at attempt 0", () => {
expect(keeperFeeForAttempt(0)).toBe(baseFee);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

keeperFeeForAttempt is (attempt, baseFee, config?). This call passes no baseFee, so it evaluates against undefined; pass KEEPER_BASE_FEE_STROOPS (or the configured base fee) as the second argument every time it is called.

@dynamicgram11-cmyk
dynamicgram11-cmyk force-pushed the fix/issue-1055-bug-three-of-the-four-spec-files-in-packages branch from 8347792 to d9ca1c9 Compare October 22, 2026 07:21
@drips-wave

drips-wave Bot commented Oct 22, 2026

Copy link
Copy Markdown

@dynamicgram11-cmyk Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@collinsezedike collinsezedike left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@dynamicgram11-cmyk The obfuscated payload has been removed. The test rewrite still does not compile. blend-adapter.test.ts uses VAUL_STATE on lines 14 and 15. tx-submission.test.ts imports keeperFeeConfig and maxFeeAttempt, which keeper-tx.ts does not export, and calls keeperFeeForAttempt without its baseFee argument.

dynamicgram11-cmyk added a commit to dynamicgram11-cmyk/meridian that referenced this pull request Oct 24, 2026
dynamicgram11-cmyk added a commit to dynamicgram11-cmyk/meridian that referenced this pull request Oct 24, 2026
@dynamicgram11-cmyk
dynamicgram11-cmyk force-pushed the fix/issue-1055-bug-three-of-the-four-spec-files-in-packages branch from a6b00d0 to 944a87b Compare October 24, 2026 09:55
@collinsezedike collinsezedike changed the title fix: replace placeholder SDK specs with real module tests test(sdk): remove placeholder specs and unused fixtures Oct 25, 2026
@collinsezedike
collinsezedike force-pushed the fix/issue-1055-bug-three-of-the-four-spec-files-in-packages branch from 944a87b to 53fcc0b Compare October 25, 2026 16:06

@collinsezedike collinsezedike left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@dynamicgram11-cmyk thank you for your contribution. If you would like to pick up another open issue, the issue list has more work available.

@collinsezedike
collinsezedike merged commit 972b3ad into drydocs:main Oct 25, 2026
11 of 12 checks passed
@collinsezedike

Copy link
Copy Markdown
Collaborator

@dynamicgram11-cmyk if Meridian is useful to you, would you consider starring the repository?

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.

[Bug] Three of the four spec files in packages/sdk test nothing

2 participants