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
Require'ing a json file twice returns undefined #62
Comments
Summary: We previously had interactive2 test inside the interactive2 folder. This commit adds those to the test infrastructure already in the top-level perseus Makefile. yay tests! Test Plan: make test make jest Note: make jest is currently [still] failing due to jestjs/jest#62 Reviewers: charlie Reviewed By: charlie Subscribers: jlfwong Differential Revision: http://phabricator.khanacademy.org/D11186
Summary: We previously had interactive2 test inside the interactive2 folder. This commit adds those to the test infrastructure already in the top-level perseus Makefile. yay tests! Test Plan: make test make jest Note: make jest is currently [still] failing due to jestjs/jest#62 Reviewers: charlie Reviewed By: charlie Subscribers: jlfwong Differential Revision: http://phabricator.khanacademy.org/D11186
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 was fixed a while ago :) |
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. |
Hi! I think I may have found a bug in jest. When I require a .json file twice in code jest is running, the second require() seems to return undefined. Here's a test that's failing for me, that I would expect to pass:
(where the file ../version.json exists, and the above test passes when run by mocha).
The text was updated successfully, but these errors were encountered: