You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(js): pass project Jest config for TypeScript transformation
When running generated tests on TypeScript projects, Jest was failing
with "unexpected token" errors because it wasn't configured to transform
TypeScript files. The tests were being run without the project's Jest
config file.
This fix:
- Adds `_find_jest_config()` function to locate Jest config files
- Searches project root and parent directories (for monorepo support)
- Passes `--config` flag to Jest in all test runner functions
- Stops search at git root or monorepo root (package.json with workspaces)
Tested against next.js (monorepo) where jest.config.js is at repo root
but packages are in nested directories.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments