Skip to content

Commit d3e62b4

Browse files
mjawulskijosephperrott
authored andcommitted
fix: default config check is not checking test builder (#11816)
1 parent 0569b64 commit d3e62b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/schematics/install/theming.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,11 @@ function assertDefaultProjectConfig(project: Project) {
9595
/** Gets whether the Angular CLI project is using the default build configuration. */
9696
function isProjectUsingDefaultConfig(project: Project) {
9797
const defaultBuilder = '@angular-devkit/build-angular:browser';
98+
const defaultTestBuilder = '@angular-devkit/build-angular:karma';
9899

99100
return project.architect &&
100101
project.architect['build'] &&
101102
project.architect['build']['builder'] === defaultBuilder &&
102103
project.architect['test'] &&
103-
project.architect['build']['builder'] === defaultBuilder;
104+
project.architect['test']['builder'] === defaultTestBuilder;
104105
}

0 commit comments

Comments
 (0)