9dedb62494
Refactors the i18n error tests to be unit tests in ngtsc_spec.ts. There is two reasons for doing this. First is that the tests in compliace_old expected an expection to be be thrown but did not fail the test if no exception was thrown. That means that this test could miss catching a bug. It is also a big hacky to call compile directly and expect an exception to be thrown for diagnostics. Also, this can easily be unit tested and an end-to-end test is not necessary since we are not making use of the goldfiles for these tests. It is easier to maintain and less hacky to validate that we get helpful error messages when nesting i18n sections by calling getDiagnostics directly. PR Close #40026 |
||
---|---|---|
.. | ||
integrationtest | ||
linker | ||
ngcc | ||
src | ||
test | ||
BUILD.bazel | ||
index.ts | ||
package.json | ||
tsconfig-build.json | ||
tsconfig.json |