angular/packages/compiler-cli/test/compliance/test_helpers
Kristiyan Kostadinov 2a1723c945 test(compiler): fix broken integrity check (#51751)
The `verifyPlaceholdersIntegrity` check in the compliance tests was basically a noop, because it was returning false inside a `forEach` callback. Fixing it revealed that it had fallen out of date, because one of the regexes it uses was incorrect. The problem is that it assumed the placeholder keys would always be string literals, however it's possible that they're identifiers. These changes resolve the issue by not looking at the keys at all since we don't do anything with them.

PR Close #51751
2023-09-13 10:48:32 -07:00
..
BUILD.bazel test(compiler): Prevent back-sliding on already passing template pipeline tests (#50582) 2023-06-12 18:25:41 +02:00
check_errors.ts test(compiler-cli): log unexpected compilation errors in compliance test runner (#39862) 2020-12-02 14:56:38 -08:00
check_expectations.ts refactor(compiler-cli): update to use new file-system interfaces (#40281) 2021-01-08 09:34:44 -08:00
compile_test.ts feat(core): add support for TypeScript 5.0 (#49126) 2023-02-28 08:24:47 -08:00
di_checks.ts fix(compiler-cli): remove unnecessary escaping in regex expressions (#51554) 2023-08-29 21:52:33 +00:00
expect_emit.ts refactor: replace deprecated String.prototype.substr() (#45397) 2022-03-24 11:48:09 -07:00
expected_file_macros.ts build: align with internal tsconfig options (#51728) 2023-09-12 11:39:42 -07:00
function_checks.ts test(compiler-cli): migrate template compliance tests (#39871) 2020-12-01 14:58:11 -08:00
get_compliance_tests.ts test(compiler): allow alternate expected file for template pipeline (#51100) 2023-08-01 13:45:34 -07:00
golden_partials.ts test(compiler-cli): ensure that golden partial files are parsed accurately (#39939) 2020-12-07 16:21:02 -08:00
i18n_checks.ts test(compiler): fix broken integrity check (#51751) 2023-09-13 10:48:32 -07:00
i18n_helpers.ts refactor(compiler): add original_code to goog.getMsg() options (#45606) 2022-04-18 09:26:16 -07:00
sourcemap_helpers.ts refactor(compiler): Introduce source maps in the template pipeline. (#50899) 2023-07-27 15:08:04 -07:00
test_runner.ts build: align with internal tsconfig options (#51728) 2023-09-12 11:39:42 -07:00