mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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
|
||
|---|---|---|
| .. | ||
| static/ts | ||
| BUILD.bazel | ||
| index.html | ||
| tsconfig-e2e.json | ||
| tsconfig.json | ||
| upgrade_example.bzl | ||