Skip to content

Add missing @sourceacademy/modules-testplugin devDependency to curve bundle - #853

Merged
martin-henz merged 1 commit into
conductor-migrationfrom
fix/curve-testplugin-dep
Jul 27, 2026
Merged

Add missing @sourceacademy/modules-testplugin devDependency to curve bundle#853
martin-henz merged 1 commit into
conductor-migrationfrom
fix/curve-testplugin-dep

Conversation

@martin-henz

Copy link
Copy Markdown
Member

Summary

Fixes the `curve Bundle` CI failure from PR #680's run: https://github.com/source-academy/modules/actions/runs/30272720846

`src/bundles/curve/src/tests/curve.test.ts` imports `TestDataHandler`, `callClosure`, and `runAsyncGenerator` from `@sourceacademy/modules-testplugin`, but the bundle's `package.json` never declared it as a dependency. `csg` and `plotly` — migrated in the same PR (#840) — both declare it correctly, which is why only `curve` failed.

This was invisible in a full workspace install (hoisting made it resolvable anyway), but breaks `tsc` in CI's isolated `yarn workspaces focus` install for the curve bundle job:

error TS2307: Cannot find module '@sourceacademy/modules-testplugin' or its corresponding type declarations.

plus a cascade of implicit-any errors on the test file's callback parameters, since their types depend on runAsyncGenerator's now-unresolvable signature.

Verification

  • Reproduced the exact CI failure locally via an isolated yarn workspaces focus @sourceacademy/bundle-curve install (matching what CI does)
  • After the fix: tsc passes cleanly, all 120 curve bundle tests pass (1 skipped)
  • yarn constraints clean
  • yarn lint:all — no new errors/warnings

🤖 Generated with Claude Code

…bundle

curve/src/__tests__/curve.test.ts imports TestDataHandler, callClosure,
and runAsyncGenerator from @sourceacademy/modules-testplugin, but the
bundle's package.json never declared it as a dependency (csg and plotly,
migrated in the same PR, both declare it correctly). This was invisible
in a full workspace install but breaks tsc in CI's isolated
`yarn workspaces focus` install for the curve bundle job, producing
"Cannot find module '@sourceacademy/modules-testplugin'" plus a cascade
of implicit-any errors on the test file's callback parameters (their
types depend on runAsyncGenerator's now-unresolvable signature).
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@martin-henz
martin-henz merged commit be625dc into conductor-migration Jul 27, 2026
@martin-henz
martin-henz deleted the fix/curve-testplugin-dep branch July 27, 2026 14:36
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