Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(preset): explicitly define
jsdom
for test environment (#621)
Jest 27 sets default test environment to `node`. Since we need `jsdom` so we need to explicitly set it in `jest-preset.js`. Jest 27 will still bundle `jest-environment-jsdom` in the main package and Jest 28 will detach them. However, we should just go ahead and set explicitly `jest-environment-jsdom` in our dependencies list More information see https://jestjs.io/blog/2020/05/05/jest-26
- Loading branch information