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 File class override in jsdom tests #167

Merged
merged 1 commit into from
May 20, 2024
Merged
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
9 changes: 9 additions & 0 deletions .changeset/smooth-ducks-kneel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@ima/plugin-testing-integration": patch
---

Fix File class override in jsdom tests

- **What?** Fix File class override in jsdom tests
- **Why?** Use correct global File class in jsdom
- **How?** Nothing.
1 change: 1 addition & 0 deletions packages/plugin-testing-integration/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ async function initImaApp(bootConfigMethods = {}) {
// we should switch to `global-jsdom`, or take its implementation
// as an inspiration for our own implementation
global.CustomEvent = window.CustomEvent; // Hotfix for Node 19+, we can remove this once we switch to `global-jsdom`
global.File = window.File; // Hotfix for Node 19+, we can remove this once we switch to `global-jsdom`

// set debug before IMA env debug
global.$Debug = true;
Expand Down
Loading