-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Commit 4b49a20
fix(@angular/build): ensure karma polyfills reporter factory returns a value
The factory function for the `reporter:angular--polyfills` Karma plugin did not return a value, which violates Karma's plugin contract. This could cause Karma to crash when multiple reporters were in use, particularly with tools that use Karma's multi-reporter functionality.
This change modifies the factory to return an object with an empty `adapters` array (`{ adapters: [] }`). This satisfies Karma's plugin requirements and ensures compatibility with the multi-reporter, preventing the crash.
Fixes #31039 1 parent 0bc89ef commit 4b49a20
File tree
1 file changed
+3
-0
lines changed- packages/angular/build/src/builders/karma
1 file changed
+3
-0
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
187 | 187 |
| |
188 | 188 |
| |
189 | 189 |
| |
190 | + | ||
191 | + | ||
192 | + | ||
190 | 193 |
| |
191 | 194 |
| |
192 | 195 |
| |
|
0 commit comments