Skip to content

Commit

Permalink
not sure why TextEncoder is not found, try this
Browse files Browse the repository at this point in the history
  • Loading branch information
lperson committed Mar 31, 2024
1 parent 1427fcf commit c18ce7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions __test__/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import Adapter from "enzyme-adapter-react-16";
import { TextEncoder, TextDecoder } from "util";
import { r } from "../src/server/models";

Object.assign(global, { TextDecoder, TextEncoder });

configure({ adapter: new Adapter() });

// server/api/campaign.test.js has some long tests so we increase from 5sec default
Expand All @@ -22,3 +20,5 @@ afterAll(async () => {
// eat the exception yum yum
}
});

Object.assign(global, { TextDecoder, TextEncoder });

0 comments on commit c18ce7d

Please sign in to comment.