Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Guard against
process
not being defined (#68)
Webpack 5 doesn't shim Node's `process` object by default anymore. Only instances of `process.env.NODE_ENV` are replaced statically. This means that unguarded checks of `process.env` will crash in browser environments (such as Karma). This is a port of testing-library/react-testing-library#911
- Loading branch information