reblend-testing-library
Version:
Simple and complete Reblendjs testing utilities that encourage good testing practices.
10 lines (9 loc) • 399 B
JavaScript
;
require("@testing-library/jest-dom/extend-expect");
require("./failOnUnexpectedConsoleCalls");
var _util = require("util");
var _worker_threads = require("worker_threads");
global.TextEncoder = _util.TextEncoder;
// TODO: Revisit once https://github.com/jsdom/jsdom/issues/2448 is resolved
// This isn't perfect but good enough.
global.MessageChannel = _worker_threads.MessageChannel;