mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This commit updates a type used in the transplanted views perf tests, to make the test compatible with strict template type-checking.
Currently, compiling the perf test results in the following TS error:
```
error TS2322: Type 'TemplateRef<{}>' is not assignable to type 'TemplateRef<NgForOfContext<any, any[]>>'.
17 <ng-container *ngFor="let n of views; template: template; trackBy: trackByIndex"></ng-container>
~~~~~~~~
```
PR Close #44905
|
||
|---|---|---|
| .. | ||
| change_detection | ||
| class_bindings | ||
| expanding_rows | ||
| js-web-frameworks | ||
| largeform | ||
| largetable | ||
| old | ||
| styling | ||
| tree | ||
| views | ||
| bootstrap_ng2.ts | ||
| bootstrap_plain.ts | ||
| BUILD.bazel | ||
| README.md | ||
| util.ts | ||
Benchmark Directory Layout
Bazel
Under bazel the rules for laying out test files are slightly different. Use largetable/render3 as an example.
Put the perf file in current subdirectory (ie largetable) such that the same perf file can be used for each of the sub-subdirectories. (ie largetable/* should all be testable with the same perf file largetable/largetable_perf.spec.ts). Under bazel, typescript protractor spec files must end with .spec.ts or .test.ts.