mirror of
https://github.com/flarum/core.git
synced 2025-08-06 00:17:31 +02:00
fix: regression in typings
This commit is contained in:
@@ -12,8 +12,6 @@ import jsdom from 'jsdom';
|
||||
dayjs.extend(relativeTime);
|
||||
dayjs.extend(localizedFormat);
|
||||
|
||||
process.env.testing = true;
|
||||
|
||||
const dom = new jsdom.JSDOM('', {
|
||||
pretendToBeVisual: false,
|
||||
});
|
||||
@@ -26,6 +24,7 @@ global.requestAnimationFrame = (callback) => callback();
|
||||
|
||||
// Some other needed pollyfills.
|
||||
window.$ = jquery;
|
||||
window.testing = true;
|
||||
window.m = m;
|
||||
window.$.fn.tooltip = () => {};
|
||||
window.matchMedia = () => ({
|
||||
|
Reference in New Issue
Block a user