mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-05 05:38:41 +03:00
0d6edab708
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
17 lines
592 B
JavaScript
17 lines
592 B
JavaScript
const BaseEnvironment = require("jest-environment-jsdom-sixteen");
|
|
|
|
class Environment extends BaseEnvironment {
|
|
constructor(config, options) {
|
|
super(Object.assign({}, config, {
|
|
globals: Object.assign({}, config.globals, {
|
|
// Explicitly specify the correct globals to workaround Jest bug
|
|
// https://github.com/facebook/jest/issues/7780
|
|
Uint32Array: Uint32Array,
|
|
Uint8Array: Uint8Array,
|
|
ArrayBuffer: ArrayBuffer,
|
|
}),
|
|
}), options);
|
|
}
|
|
}
|
|
|
|
module.exports = Environment;
|