angular/tools/legacy-saucelabs/pre-setup.ts
Paul Gschwendtner 5c10efe002 build: fix legacy saucelabs test bundle generation after ESM changes (#48521)
ZoneJS is no longer loaded as an UMD, but instead is included as part
of the browser init entry-point. This means that ZoneJS is bundled and
the ESBuild logic needs to be adjusted for that.

PR Close #48521
2022-12-19 19:50:44 +00:00

16 lines
626 B
TypeScript

/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// ZoneJS configuration needed for some event manager tests. This config could
// affect all legacy tests but in reality is scoped to certain special tests.
import {configureZoneUnpatchedEvent} from '../../packages/platform-browser/test/dom/events/zone_event_unpatched.init.mjs';
// Increase the timeout for specs as Saucelabs devices can be slow.
jasmine.DEFAULT_TIMEOUT_INTERVAL = 30000;
configureZoneUnpatchedEvent();