Fix Windows npm start spawning in early solution tests#8
Conversation
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 0aed4d1. Configure here.
| } | ||
|
|
||
| const output = getOutput() | ||
| const output = getNpmStartOutput() |
There was a problem hiding this comment.
Playground missing shared test helper
High Severity
Solution tests now import getNpmStartOutput from ../run-npm-start.ts, but the Epic Shop playground only receives copied *.test.ts files into a flat playground/ directory. That relative import resolves outside the playground and the helper file is not present, so npm test in the playground fails to load the module for exercises 2–5.
Additional Locations (2)
Reviewed by Cursor Bugbot for commit 0aed4d1. Configure here.


Summary
getNpmStartOutputhelper for expression/output solution testsnpm start --silentthrough a shell consistently so npm command shims resolve across platformsspawnSync('npm', ...)test boilerplate with the shared helper for the affected post-Hello-World testsVerification
PATH="/home/ubuntu/.nvm/versions/node/v22.18.0/bin:$PATH"; node -v && npm run typecheck && node ./epicshop/test.js ..sAll 26 solution test suites passed. Problem test suites were not included.