mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
Upgrades to Eslint v9. Since this is a major version there were breaking changes, but since we've previously migrated to flat configs in #12806 those were minimal.
11 lines
331 B
TypeScript
11 lines
331 B
TypeScript
import JSDOMEnvironment from "jest-environment-jsdom";
|
|
|
|
export default class FixJSDOMEnvironment extends JSDOMEnvironment {
|
|
constructor(...args: ConstructorParameters<typeof JSDOMEnvironment>) {
|
|
super(...args);
|
|
|
|
// FIXME https://github.com/jsdom/jsdom/issues/3363
|
|
this.global.structuredClone = structuredClone;
|
|
}
|
|
}
|