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
|
||
|---|---|---|
| .. | ||
| common | ||
| core | ||
| forms | ||
| http | ||
| injection-token | ||
| platform-browser | ||
| router | ||
| service-worker | ||
| test-utils | ||
| testing | ||
| upgrade | ||
| BUILD.bazel | ||
| index.html | ||
| README.md | ||
| tsconfig-e2e.json | ||
| tsconfig-test.json | ||
| tsconfig.json | ||
API Examples
This folder contains small example apps that get in-lined into our API docs. Each example contains tests for application behavior (as opposed to testing Angular's behavior) just like an Angular application developer would write.
Running the examples
# Serving individual examples (e.g. common)
pnpm bazel run //packages/examples/common:devserver
# "core" examples
pnpm bazel run //packages/examples/core:devserver
Running the tests
pnpm bazel test //packages/examples/...