New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unused (non-Jest) test files in npm packages break Haste #51
Comments
Ah, yea this is probably an error that we should just swallow when doing the dependency calculation inside |
Ok, I believe this should be fixed in d397b4e It will still console.warn() to tell you that it couldn't find the module -- but it won't fatal |
Thank you for reporting this issue and appreciate your patience. We've notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I created a small demo repo with a single JS module and a single test.
Then edit moof.js:
And moof-test.js:
Run
jest -o
:Inside
node_modules/clamp
there is a file called test.js that requirestape
. We don't havetape
because it's a dev dependency and also test.js is not needed. Haste should be smarter about the files it scans... this might be tricky because technically one could requireclamp/test
(from PHP even...) and it's just hard to statically tell what files are actually used.The text was updated successfully, but these errors were encountered: