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

Update dependency jsdom to v26 #1497

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
"jest": "^27.4.7",
"jest-fetch-mock": "^3.0.3",
"jest-watch-typeahead": "^2.2.0",
"jsdom": "^15.2.1",
"jsdom": "^26.0.0",
"mini-css-extract-plugin": "^2.6.1",
"playwright": "^1.45.0",
"postcss-import": "^12.0.1",
Expand Down
4 changes: 4 additions & 0 deletions www/assets/js/test_setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
enableFetchMocks()
import Enzyme from "enzyme"
import Adapter from "enzyme-adapter-react-16"
import { TextEncoder, TextDecoder } from "util"

global.TextEncoder = TextEncoder
global.TextDecoder = TextDecoder as any

Check warning on line 8 in www/assets/js/test_setup.ts

View workflow job for this annotation

GitHub Actions / javascript-tests

Unexpected any. Specify a different type

Enzyme.configure({ adapter: new Adapter() })

Expand Down
Loading