1
0
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:
Sami Mazouz
2024-09-28 16:11:50 +01:00
parent d818e83235
commit 1f3afca482
6 changed files with 13 additions and 7 deletions

View File

@@ -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 = () => ({