Commit 566de64
fix(@angular/build): use virtual module for Karma TestBed initialization
Using a virtual module for the Karma-based unit testing setup allows for
the Angular packages used within the TestBed initialization to resolve to
the same dependencies used within the application and test code. This avoids
the potential for multiple copies of `@angular/core` within the test output
which can result in TestBed execution failure due to the module level variable
usage within TestBed.1 parent 32d5476 commit 566de64
File tree
2 files changed
+24
-18
lines changed- packages/angular/build/src/builders/karma
- polyfills
2 files changed
+24
-18
lines changedLines changed: 24 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
383 | 384 | | |
384 | 385 | | |
385 | 386 | | |
386 | | - | |
| 387 | + | |
387 | 388 | | |
388 | 389 | | |
389 | 390 | | |
| |||
429 | 430 | | |
430 | 431 | | |
431 | 432 | | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
432 | 454 | | |
433 | 455 | | |
434 | | - | |
| 456 | + | |
435 | 457 | | |
436 | 458 | | |
437 | 459 | | |
| |||
Lines changed: 0 additions & 16 deletions
This file was deleted.
0 commit comments