Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 41bd100

Browse filesBrowse files
committed
fix(@angular/build): fallback to build target preserveSymlinks option in karma runner
When running unit tests with karma, the `preserveSymlinks` option was only read from the unit test builder options which is always undefined, as `unitTestOptions.preserveSymlinks` is only configured for non standalone runners.
1 parent 52ae7f8 commit 41bd100
Copy full SHA for 41bd100

1 file changed

+1-1Lines changed: 1 addition & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/angular/build/src/builders/unit-test/runners/karma
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/angular/build/src/builders/unit-test/runners/karma/executor.ts‎

Copy file name to clipboardExpand all lines: packages/angular/build/src/builders/unit-test/runners/karma/executor.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class KarmaExecutor implements TestExecutor {
9191
progress: unitTestOptions.buildProgress ?? buildTargetOptions.progress,
9292
watch: unitTestOptions.watch,
9393
poll: buildTargetOptions.poll,
94-
preserveSymlinks: unitTestOptions.preserveSymlinks,
94+
preserveSymlinks: unitTestOptions.preserveSymlinks ?? buildTargetOptions.preserveSymlinks,
9595
browsers: unitTestOptions.browsers?.join(','),
9696
codeCoverage: unitTestOptions.coverage.enabled,
9797
codeCoverageExclude: unitTestOptions.coverage.exclude,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.