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

Function failedDynamicImport

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

* Emulates a failed dynamic import promise.

()

Source from the content-addressed store, hash-verified

83 * Emulates a failed dynamic import promise.
84 */
85function failedDynamicImport(): Promise<void> {
86 return new Promise((_, reject) => {
87 setTimeout(() => reject());
88 });
89}
90
91/**
92 * 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