mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-09 01:16:15 -08:00
* chore(deps): upgrade Angular to 22.1 and Nx to 23.2 * fix(deps): complete Angular migrations after rebasing on master * fix(ci): use the Node pin for Windows runtime refresh * docs(deps): synchronize the workspace-shell Node requirements
35 lines
978 B
TypeScript
35 lines
978 B
TypeScript
// Keep Zone's fakeAsync helpers while preserving the Angular 21 test scheduler.
|
|
import 'zone.js';
|
|
import 'zone.js/testing';
|
|
import { setupZonelessTestEnv } from 'jest-preset-angular/setup-env/zoneless/index.mjs';
|
|
import { installDuplicateVideoJsQualityLevelsWarnFilter } from '@iptvnator/shared/testing';
|
|
|
|
Object.defineProperty(globalThis, 'jest', {
|
|
configurable: true,
|
|
value: import.meta.jest,
|
|
});
|
|
|
|
if (
|
|
typeof (globalThis as { IDBFactory?: unknown }).IDBFactory === 'undefined'
|
|
) {
|
|
Object.defineProperty(globalThis, 'IDBFactory', {
|
|
configurable: true,
|
|
value: class MockIDBFactory {},
|
|
});
|
|
}
|
|
|
|
if (!Element.prototype.animate) {
|
|
Element.prototype.animate = () =>
|
|
({
|
|
cancel: () => undefined,
|
|
finished: Promise.resolve(),
|
|
}) as unknown as Animation;
|
|
}
|
|
|
|
installDuplicateVideoJsQualityLevelsWarnFilter();
|
|
|
|
setupZonelessTestEnv({
|
|
errorOnUnknownElements: true,
|
|
errorOnUnknownProperties: true,
|
|
});
|