Skip to content

test: cover retry helpers and error class shapes#1

Merged
sushant-ipte merged 2 commits into
mainfrom
chore/extra-tests
May 25, 2026
Merged

test: cover retry helpers and error class shapes#1
sushant-ipte merged 2 commits into
mainfrom
chore/extra-tests

Conversation

@sushant-ipte
Copy link
Copy Markdown
Contributor

  • retry.test.ts: computeBackoff exponential growth + cap + jitter, parseRetryAfter for both seconds and HTTP-date, sleep abort semantics
  • errors.test.ts: ScormHttpError code/requestId/details lifting, ScormNetworkError cause, ScormTimeoutError message, isRetryableStatus

Brings sdk suite from 33 to 58 tests.

Summary

Type of change

  • Feature (new functionality)
  • Fix (bug fix)
  • Refactor (no behavior change)
  • Docs / chore (no production code change)
  • Breaking change

Test plan

  • pnpm typecheck passes
  • pnpm test passes
  • pnpm build succeeds
  • Added / updated tests for new behavior

Related

Closes #

- retry.test.ts: computeBackoff exponential growth + cap + jitter,
  parseRetryAfter for both seconds and HTTP-date, sleep abort semantics
- errors.test.ts: ScormHttpError code/requestId/details lifting,
  ScormNetworkError cause, ScormTimeoutError message, isRetryableStatus

Brings sdk suite from 33 to 58 tests.
Both packages declare a vitest script but won't ship tests until the
player runtime bridge and React bindings land. Add --passWithNoTests so
`pnpm -r run test` doesn't fail CI on empty packages.
@sushant-ipte sushant-ipte merged commit 56d3142 into main May 25, 2026
2 checks passed
@sushant-ipte sushant-ipte deleted the chore/extra-tests branch May 25, 2026 06:18
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.

1 participant