You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e2c5c03
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: packages/angular_devkit/build_angular/src/builders/karma/index.ts
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -99,6 +99,12 @@ export function execute(
99
99
100
100
karmaOptions.singleRun=singleRun;
101
101
102
+
// Workaround https://github.com/angular/angular-cli/issues/28271, by clearing context by default
103
+
// for single run executions. Not clearing context for multi-run (watched) builds allows the
104
+
// Jasmine Spec Runner to be visible in the browser after test execution.
105
+
karmaOptions.client??={};
106
+
karmaOptions.client.clearContext??=singleRun??false;// `singleRun` defaults to `false` per Karma docs.
0 commit comments