Skip to content

Keep npm start tests self-contained for playground#9

Merged
cursor[bot] merged 1 commit into
mainfrom
cursor/fix-playground-test-helper-495a
Jul 6, 2026
Merged

Keep npm start tests self-contained for playground#9
cursor[bot] merged 1 commit into
mainfrom
cursor/fix-playground-test-helper-495a

Conversation

@kentcdodds

@kentcdodds kentcdodds commented Jul 6, 2026

Copy link
Copy Markdown
Member

Summary

  • Inline the Windows-safe npm start --silent runner in each affected expression/output solution test
  • Remove the shared run-npm-start.ts helper so copied playground tests do not import files outside the playground
  • Preserve consistent shell: true behavior across platforms

Why

epicshop/post-set-playground.js copies only *.test.ts files from the solution directory into the flat playground directory. Keeping the runner in a sibling helper means playground tests can fail with a missing ../run-npm-start.ts import.

Verification

  • PATH="/home/ubuntu/.nvm/versions/node/v22.18.0/bin:$PATH"; node -v && npm run typecheck && node ./epicshop/test.js ..s

All 26 solution test suites passed. Problem test suites were not included.

Open in Web Open in Cursor 

Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
@kentcdodds kentcdodds marked this pull request as ready for review July 6, 2026 19:22
@cursor cursor Bot merged commit ef6efb4 into main Jul 6, 2026
6 checks passed
@kentcdodds kentcdodds deleted the cursor/fix-playground-test-helper-495a branch July 6, 2026 19:25
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.

2 participants