Skip to content
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

Fix test suite in Node 22 #1642

Merged
merged 1 commit into from
Feb 17, 2025
Merged

Fix test suite in Node 22 #1642

merged 1 commit into from
Feb 17, 2025

Conversation

joshkel
Copy link
Contributor

@joshkel joshkel commented Feb 10, 2025

Node now provides a navigator global (https://nodejs.org/api/globals.html#navigator_1), which could cause JSONEditor's test suite to fail with the following error.

 Exception during run: TypeError: Cannot set property navigator of #<Object> which has only a getter
    at setUpTestEnvironment (jsoneditor/test/setup.js:16:19)
    at Object.<anonymous> (jsoneditor/test/setup.js:22:1)

Node now provides a `navigator` global (https://nodejs.org/api/globals.html#navigator_1), which could cause JSONEditor's test suite to fail with the following error.

```
 Exception during run: TypeError: Cannot set property navigator of #<Object> which has only a getter
    at setUpTestEnvironment (jsoneditor/test/setup.js:16:19)
    at Object.<anonymous> (jsoneditor/test/setup.js:22:1)
```
@josdejong
Copy link
Owner

Thanks Josh👍

@josdejong josdejong merged commit e8628b9 into josdejong:develop Feb 17, 2025
5 checks passed
@joshkel joshkel deleted the node-22-fix branch February 17, 2025 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants