Commit e0ff321
build: prepare testing infrastructure for code splitting of
When we switch to relative imports, shared `.d.ts` chunks can be
generated.
We need to also pull these into our mock virtual FS testing
environments. Notably this does not cause a test slow-down because we
are talking about very few extra `.d.ts` chunk files. In our experiments
before, with no dts bundling, we saw test time increase from e.g.
20seconds to 100seconds. The 20s are still the same locally!
In addition, since code for definitions can now reside in shared `.d.ts`
chunks, the language service tests need to be adjusted in cases where
they assert for code definition locations in `@angular/core`. A new
helper prepares for more code to be moved into arbitrary `.d.ts` files;
we should simply assert the definition comes out of
`node_modules/@angular/core`.
PR Close angular#60487core package (angular#60487)1 parent a7183d8 commit e0ff321
4 files changed
Lines changed: 58 additions & 63 deletions
File tree
- packages
- compiler-cli/src/ngtsc/typecheck/testing
- language-service
- testing/src
- test
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
Lines changed: 21 additions & 58 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
| 155 | + | |
154 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
155 | 161 | | |
| 162 | + | |
156 | 163 | | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
| |||
246 | 247 | | |
247 | 248 | | |
248 | 249 | | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
| 250 | + | |
255 | 251 | | |
256 | 252 | | |
257 | 253 | | |
| |||
425 | 421 | | |
426 | 422 | | |
427 | 423 | | |
428 | | - | |
429 | | - | |
430 | | - | |
| 424 | + | |
431 | 425 | | |
432 | 426 | | |
433 | 427 | | |
| |||
518 | 512 | | |
519 | 513 | | |
520 | 514 | | |
521 | | - | |
522 | | - | |
523 | | - | |
524 | | - | |
| 515 | + | |
525 | 516 | | |
526 | 517 | | |
527 | 518 | | |
528 | 519 | | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
| 520 | + | |
533 | 521 | | |
534 | 522 | | |
535 | 523 | | |
| |||
538 | 526 | | |
539 | 527 | | |
540 | 528 | | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
| 529 | + | |
547 | 530 | | |
548 | 531 | | |
549 | 532 | | |
| |||
585 | 568 | | |
586 | 569 | | |
587 | 570 | | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
| 571 | + | |
592 | 572 | | |
593 | 573 | | |
594 | 574 | | |
| |||
669 | 649 | | |
670 | 650 | | |
671 | 651 | | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
| 652 | + | |
676 | 653 | | |
677 | 654 | | |
678 | 655 | | |
| |||
723 | 700 | | |
724 | 701 | | |
725 | 702 | | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | | - | |
| 703 | + | |
731 | 704 | | |
732 | 705 | | |
733 | 706 | | |
| |||
746 | 719 | | |
747 | 720 | | |
748 | 721 | | |
749 | | - | |
750 | | - | |
751 | | - | |
752 | | - | |
753 | | - | |
754 | | - | |
755 | | - | |
756 | | - | |
| 722 | + | |
757 | 723 | | |
758 | 724 | | |
759 | 725 | | |
| |||
908 | 874 | | |
909 | 875 | | |
910 | 876 | | |
911 | | - | |
912 | | - | |
913 | | - | |
914 | | - | |
| 877 | + | |
915 | 878 | | |
916 | 879 | | |
917 | 880 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
122 | | - | |
| 123 | + | |
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
| |||
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
161 | | - | |
| 162 | + | |
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
25 | 57 | | |
26 | 58 | | |
27 | 59 | | |
| |||
97 | 129 | | |
98 | 130 | | |
99 | 131 | | |
100 | | - | |
101 | | - | |
102 | | - | |
| 132 | + | |
103 | 133 | | |
104 | 134 | | |
105 | 135 | | |
| |||
0 commit comments