MCPcopy Create free account
hub / github.com/angular/angular / failedDynamicImport

Function failedDynamicImport

packages/core/test/acceptance/defer_spec.ts:84–88  ·  view source on GitHub ↗

* Emulates a failed dynamic import promise.

()

Source from the content-addressed store, hash-verified

82 * Emulates a failed dynamic import promise.
83 */
84function failedDynamicImport(): Promise<void> {
85 return new Promise((_, reject) => {
86 setTimeout(() => reject());
87 });
88}
89
90/**
91 * Helper function to await all pending dynamic imports

Callers 1

interceptFunction · 0.70

Calls 2

setTimeoutFunction · 0.85
rejectFunction · 0.85

Tested by

no test coverage detected