angular-cn/packages/language-service
Keen Yee Liau da79e0433f test(language-service): [ivy] Add mock service to overwrite files (#36923)
Add a mechanism to replace file contents for a specific file. This
allows us to write custom test scenarios in code without modifying the
test project.

Since we are no longer mocking the language service host, the file
overwrite needs to happen via the project service.
Project service manages a set of script infos, and overwriting the files
is a matter of updating the relevant script infos.

Note that the actual project service is wrapped inside a Mock Service.
Tests should not have direct access to the project service. All
manipulations should take place via the Mock Service.

The MockService provides a `reset()` method to undo temporary overwrites
after each test.

PR Close #36923
2020-05-05 17:52:12 -07:00
..
bundles build: Add entry point for Ivy language service (#36864) 2020-05-01 10:02:03 -07:00
ivy test(language-service): [ivy] Add mock service to overwrite files (#36923) 2020-05-05 17:52:12 -07:00
src test(language-service): do not invalidate @angular/core (#36845) 2020-04-29 14:27:33 -07:00
test test(language-service): Add method to override inline template (#36890) 2020-05-04 12:50:47 -07:00
BUILD.bazel build: Add entry point for Ivy language service (#36864) 2020-05-01 10:02:03 -07:00
index.ts build: roll up to named .js files rather than 'index.js' (#19190) 2017-09-19 16:59:18 -07:00
language-service.ts refactor(language-service): clean up and exports and consolidate types (#36533) 2020-04-14 10:17:43 -07:00
package.json build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00