Skip to content

Commit

Permalink
test(@angular-devkit/build-angular): properly discover Bazel units tests
Browse files Browse the repository at this point in the history
The unit tests for builders are now within the `src/builders/...` path.
  • Loading branch information
clydin authored and alan-agius4 committed Aug 5, 2021
1 parent 93b541b commit 8499cfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/angular_devkit/build_angular/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 8499cfe

Please sign in to comment.