Skip to content

Fix broken test suite#42

Merged
jodeleeuw merged 2 commits into
mainfrom
fix/test-suite
May 27, 2026
Merged

Fix broken test suite#42
jodeleeuw merged 2 commits into
mainfrom
fix/test-suite

Conversation

@jodeleeuw
Copy link
Copy Markdown
Member

Summary

  • The test suite was completely non-functional: zero tests ran due to missing @jspsych/config dependency and NodeNext module resolution incompatibility with the shared Jest config
  • Added @jspsych/config as a devDependency and switched from NodeNext to ES2020 module resolution to align with the rest of the jsPsych ecosystem
  • Added a root jest.config.cjs that uses Jest projects to discover package-level test configs

All 19 existing tests now pass.

Test plan

  • npm test runs and all 19 tests pass
  • npm run build still succeeds
  • Verify CI passes on this PR

🤖 Generated with Claude Code

The test suite was completely broken because @jspsych/config was missing
as a dependency, and the project used NodeNext module resolution which
is incompatible with @jspsych/config's Sucrase-based Jest transform.

- Add @jspsych/config as a devDependency
- Switch tsconfig from NodeNext to ES2020 module resolution to align
  with the rest of the jsPsych ecosystem
- Remove .js extensions from source and test imports
- Add root jest.config.cjs using Jest projects to discover package tests

All 19 tests now pass.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 27, 2026

⚠️ No Changeset found

Latest commit: ca68347

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

- Add .github/workflows/ci.yml that runs build and test on all PRs
  and pushes to main
- Replace the "# add tests back in here" comment in release.yml with
  an actual test step

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@jodeleeuw jodeleeuw merged commit e701c81 into main May 27, 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.

1 participant