You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
592 B
17 lines
592 B
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;
|
|
|