Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix testing under node >= v21 (#2067)
Our tests do not need global.navigator, which is now present on node (https://nodejs.org/en/blog/announcements/v21-release-announce#navigator-object-integration). And, since it's only a getter, upgrading node was breaking the tests with: > TypeError: Cannot set property navigator of #<Object> which has only a getter Note: if we needed to use jsdom.window’s navigator, we could remove node’s version by applying the following snippet: https://github.com/nodejs/node/pull/50310/files
- Loading branch information