Skip to content

Commit

Permalink
fix import order for jsdom
Browse files Browse the repository at this point in the history
  • Loading branch information
billyvg committed Jul 7, 2023
1 parent 8d9125b commit 4e748b2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/rrweb-snapshot/test/snapshot.test.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/**
* @jest-environment jsdom
*/
import { JSDOM } from 'jsdom';

// XXX(sentry)
import { TextEncoder, TextDecoder } from 'util';
// @ts-ignore for jsdom
global.TextEncoder = TextEncoder;
// @ts-ignore for jsdom
global.TextDecoder = TextDecoder;

/**
* @jest-environment jsdom
*/
import { JSDOM } from 'jsdom';
import {
absoluteToStylesheet,
serializeNodeWithId,
Expand Down

0 comments on commit 4e748b2

Please sign in to comment.