From 8499cfe1d43ac722d22725d24c75961f03a4fea2 Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Thu, 5 Aug 2021 11:22:11 -0400 Subject: [PATCH] test(@angular-devkit/build-angular): properly discover Bazel units tests The unit tests for builders are now within the `src/builders/...` path. --- packages/angular_devkit/build_angular/BUILD.bazel | 2 +- .../build_angular/src/builders/ng-packagr/works_spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/angular_devkit/build_angular/BUILD.bazel b/packages/angular_devkit/build_angular/BUILD.bazel index 321cda102cb7..d8a4228fecb2 100644 --- a/packages/angular_devkit/build_angular/BUILD.bazel +++ b/packages/angular_devkit/build_angular/BUILD.bazel @@ -346,7 +346,7 @@ LARGE_SPECS = { ts_library( name = "build_angular_" + spec + "_test_lib", testonly = True, - srcs = glob(["src/" + spec + "/**/*_spec.ts"]), + srcs = glob(["src/builders/" + spec + "/**/*_spec.ts"]), tsconfig = "//:tsconfig-test.json", deps = [ # Dependencies needed to compile and run the specs themselves. diff --git a/packages/angular_devkit/build_angular/src/builders/ng-packagr/works_spec.ts b/packages/angular_devkit/build_angular/src/builders/ng-packagr/works_spec.ts index cb59df43d540..961ea1a7b17e 100644 --- a/packages/angular_devkit/build_angular/src/builders/ng-packagr/works_spec.ts +++ b/packages/angular_devkit/build_angular/src/builders/ng-packagr/works_spec.ts @@ -23,7 +23,7 @@ import { debounceTime, map, take, tap } from 'rxjs/operators'; jasmine.DEFAULT_TIMEOUT_INTERVAL = 150000; describe('NgPackagr Builder', () => { - const workspaceRoot = join(normalize(__dirname), `../../test/hello-world-lib/`); + const workspaceRoot = join(normalize(__dirname), `../../../test/hello-world-lib/`); const host = new TestProjectHost(workspaceRoot); let architect: Architect;