Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fixusageoutsidejest] Allow import outside of jest (#1018)
## Summary: The `wait` function copied from Webapp verified that jest was in use at import. This worked when in webapp and it was just a file being imported, but now it's in Wonder Stuff Testing, it causes an error if any of the non-jest code is used outside of a jest environment, which is not what we want at all. So, this removes that module level check, which in turn means Wonder Stuff Testing can be used in non-jest contexts, like stories. See [Slack thread](https://khanacademy.slack.com/archives/CEA6W0F6F/p1707955461083099?thread_ts=1707867450.595019&cid=CEA6W0F6F) for more context, if you have access. Issue: XXX-XXXX ## Test plan: `yarn test` Once published, we can update webapp and verify `dataFactoryFor` is usable within stories. Author: somewhatabstract Reviewers: somewhatabstract, jeresig, evanchaney, jeremywiebe Required Reviewers: Approved By: jeresig Checks: ✅ Test (macos-latest, 20.x), ✅ codecov/project, ✅ CodeQL, ✅ Lint, typecheck, and coverage check (ubuntu-latest, 20.x), ✅ Prime node_modules cache for primary configuration (ubuntu-latest, 20.x), ✅ Analyze (javascript), ✅ gerald, ⏭️ dependabot Pull Request URL: #1018
- Loading branch information