angular/packages/zone.js/test/node-env-setup.ts
Doug Parker 8af7d3a50b refactor(zone.js): update Node test entry point to call patch functions (#53443)
This executes the patches in the top-level scope of Node tests.

PR Close #53443
2024-03-15 18:11:34 -07:00

5 lines
285 B
TypeScript

export function setupNodeEnv(): void {
// Change default symbol prefix for testing to ensure no hard-coded references.
(global as any)['__Zone_symbol_prefix'] = '__zone_symbol_test__';
(global as any)['__zone_symbol_test__DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION'] = false;
}