angular/packages/language-service/test
Paul Gschwendtner 2df8584619 refactor(compiler-cli): speed up compiler tests by caching Angular (#54650)
Currently the `makeProgram` utility from `ngtsc/testing` does not use
the test host by default- optimizing for source file caching.

Additionally, the host can be updated to attempt caching of the `.d.ts`
files from `@angular/core`— whether that's fake core, or the real core-
is irrelevant. We are never caching if these changes between tests, so
correctness is guaranteed.

This commit reduces the type check test times form 80s to just 11
seconds, faster than what it was before with `fake_core`. The ngtsc
tests also run significantly faster. From 40s to 30s

PR Close #54650
2024-03-06 12:34:39 +01:00
..
legacy refactor(compiler-cli): do not emit signal unwrap calls in versions older than 17.2 (#54423) 2024-02-13 15:53:42 -08:00
adapters_spec.ts refactor: update language-service package and tests to work with ESM (#48521) 2022-12-19 19:50:44 +00:00
BUILD.bazel refactor(compiler-cli): speed up compiler tests by caching Angular (#54650) 2024-03-06 12:34:39 +01:00
code_fixes_spec.ts test: update code fixes spec to work with esm-cjs interop lint (#48731) 2023-01-13 14:10:39 +00:00
compiler_spec.ts refactor(language-service): Move language service code out of ivy/ folder (#44064) 2021-11-10 01:20:04 +00:00
completions_spec.ts test: add language-service tests for outputFromObservable() (#54650) 2024-03-06 12:34:39 +01:00
definitions_spec.ts test: add language-service tests for outputFromObservable() (#54650) 2024-03-06 12:34:39 +01:00
diagnostic_spec.ts fix(compiler-cli): catch fatal diagnostic when getting diagnostics for components (#50046) 2023-04-28 15:18:03 +02:00
get_outlining_spans_spec.ts feat(language-service): Implement outlining spans for control flow blocks (#52062) 2023-10-09 10:20:26 -07:00
get_template_location_for_component_spec.ts refactor(language-service): Move language service code out of ivy/ folder (#44064) 2021-11-10 01:20:04 +00:00
gettcb_spec.ts refactor(language-service): Move language service code out of ivy/ folder (#44064) 2021-11-10 01:20:04 +00:00
quick_info_spec.ts test(language-service): add tests for model inputs (#54387) 2024-02-12 11:01:53 -08:00
references_and_rename_spec.ts test: replace fake_core with real @angular/core output (#54650) 2024-03-06 12:34:38 +01:00
signature_help_spec.ts refactor(language-service): Move language service code out of ivy/ folder (#44064) 2021-11-10 01:20:04 +00:00
ts_utils_spec.ts fix(language-service): generate forwardRef for same file imports (#48898) 2023-02-02 13:40:17 -08:00
type_definitions_spec.ts test: add language-service tests for outputFromObservable() (#54650) 2024-03-06 12:34:39 +01:00