mediawiki-extensions-Relate.../jest.setup.js
Umherirrender d244328cd3 build: Updating npm dependencies
* eslint-config-wikimedia: 0.20.1 → 0.24.0
* grunt-banana-checker: 0.9.0 → 0.10.0
* @wikimedia/mw-node-qunit: 6.2.1 → 7.0.0

Change-Id: Ied24102025b02422a6a807235bcb53bc5f6e7c98
2023-04-04 01:15:59 +02:00

22 lines
499 B
JavaScript

const wikimediaTestingUtils = require( '@wikimedia/mw-node-qunit' );
const fn = () => {};
global.CSS = {
escape: ( str ) => str
};
global.OO = {
inheritClass: ( ClassNameObject ) => {
ClassNameObject.super = fn;
ClassNameObject.prototype.on = fn;
},
initClass: fn,
EventEmitter: fn
};
const { TextEncoder, TextDecoder } = require( 'util' );
global.TextEncoder = TextEncoder;
global.TextDecoder = TextDecoder;
wikimediaTestingUtils.setUp( /* disable QUnit sandboxing feature */ false );