angular/packages/examples/upgrade
Alan Agius fd05135da9 test(upgrade): exclude unit test files from E2E application sources
Exclude `**/*.spec.ts` files from the `srcs` glob of the `full_sources` target.

Previously, `module.spec.ts` was compiled as part of the application's main sources because the glob pattern only excluded `**/*_spec.ts` (E2E specs). Consequently, `module.spec.js` was generated and included in the runfiles of the E2E test target, causing the Protractor runner to load and execute it. This failed since the E2E testing runner does not have access to unit testing imports like `@angular/core/testing`.

(cherry picked from commit 7390af78b1)
2026-05-19 12:57:52 -07:00
..
static/ts test(upgrade): exclude unit test files from E2E application sources 2026-05-19 12:57:52 -07:00
BUILD.bazel build: rename defaults2.bzl to defaults.bzl (#63383) 2025-08-25 15:45:01 -07:00
index.html build: enable angular formatting on all html files 2025-12-08 10:19:45 -08:00
tsconfig-e2e.json build: migrate examples to use rules_js (#61650) 2025-05-26 11:00:59 +00:00
tsconfig.json build: migrate examples to use rules_js (#61650) 2025-05-26 11:00:59 +00:00
upgrade_example.bzl build: rename defaults2.bzl to defaults.bzl (#63383) 2025-08-25 15:45:01 -07:00