We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TextEncoder
1 parent 99a9ee8 commit f11cc8eCopy full SHA for f11cc8e
packages/browser/test/package/npm-build.js
@@ -5,6 +5,8 @@ const path = require('path');
5
const webpack = require('webpack');
6
const { JSDOM } = require('jsdom');
7
8
+Error.stackTraceLimit = Infinity;
9
+
10
webpack(
11
{
12
entry: path.join(__dirname, 'test-code.js'),
@@ -43,6 +45,9 @@ function runTests() {
43
45
const bundlePath = path.join(__dirname, 'tmp.js');
44
46
const { window } = new JSDOM('', { runScripts: 'dangerously' });
47
48
+ // This is a workaround for https://github.com/jsdom/jsdom/issues/2524
49
+ window.TextEncoder = TextEncoder;
50
51
window.onerror = function () {
52
console.error('ERROR thrown in manual test:');
53
console.error(arguments);
0 commit comments