angular-cn/packages/compiler-cli/test/compliance_old
Zach Arend 9dedb62494 test(compiler-cli): fix i18n error tests (#40026)
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
2020-12-15 13:30:52 -08:00
..
mock_compile refactor(compiler-cli): move legacy compliance tests to new folder (#39617) 2020-11-13 11:25:56 -08:00
prelink test(compiler-cli): default `enableI18nLegacyMessageIdFormat` to false in compliance tests (#39707) 2020-11-24 13:05:47 -08:00
BUILD.bazel test(compiler-cli): move testing utils to separate package (#39594) 2020-11-17 11:59:56 -08:00
README.md refactor(compiler-cli): move legacy compliance tests to new folder (#39617) 2020-11-13 11:25:56 -08:00
mock_compiler_spec.ts refactor(compiler-cli): move legacy compliance tests to new folder (#39617) 2020-11-13 11:25:56 -08:00
r3_compiler_compliance_spec.ts refactor(compiler-cli): use `ngDevMode` guard for `setClassMetadata` call (#39987) 2020-12-10 13:23:13 -08:00
r3_view_compiler_binding_spec.ts refactor(compiler-cli): move legacy compliance tests to new folder (#39617) 2020-11-13 11:25:56 -08:00
r3_view_compiler_di_spec.ts refactor(compiler-cli): move legacy compliance tests to new folder (#39617) 2020-11-13 11:25:56 -08:00
r3_view_compiler_directives_spec.ts refactor(compiler-cli): migrate view compiler directive tests (#39929) 2020-12-02 14:55:58 -08:00
r3_view_compiler_i18n_spec.ts test(compiler-cli): fix i18n error tests (#40026) 2020-12-15 13:30:52 -08:00
r3_view_compiler_input_outputs_spec.ts refactor(compiler-cli): move legacy compliance tests to new folder (#39617) 2020-11-13 11:25:56 -08:00
r3_view_compiler_listener_spec.ts refactor(compiler-cli): move legacy compliance tests to new folder (#39617) 2020-11-13 11:25:56 -08:00
r3_view_compiler_providers_spec.ts refactor(compiler-cli): move legacy compliance tests to new folder (#39617) 2020-11-13 11:25:56 -08:00
r3_view_compiler_spec.ts refactor(compiler-cli): move legacy compliance tests to new folder (#39617) 2020-11-13 11:25:56 -08:00
r3_view_compiler_styling_spec.ts refactor(compiler-cli): move legacy compliance tests to new folder (#39617) 2020-11-13 11:25:56 -08:00
r3_view_compiler_template_spec.ts refactor(compiler-cli): move legacy compliance tests to new folder (#39617) 2020-11-13 11:25:56 -08:00

README.md

Tests in this directory should be run with:

yarn bazel test --config=ivy  packages/compiler-cli/test/compliance:compliance