Skip to content

Commit fff36a5

Browse files
committed
fix(@angular/build): also disable outputMode in vitest unit-tests
Application defined entry points (`browser`/`server`) are disabled when using the experimental unit-test builder. This allows the unit test files themselves to become the entry points for testing purposes. Previously, the `outputMode` option was not also disabled. This lead to errors if it was present in the build target configuration used for `unit-test` due to the `outputMode` option requiring the `server` option.
1 parent 9bb7447 commit fff36a5

File tree

1 file changed

+1
-0
lines changed
  • packages/angular/build/src/builders/unit-test

1 file changed

+1
-0
lines changed

packages/angular/build/src/builders/unit-test/builder.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ export async function* execute(
122122
index: false,
123123
browser: undefined,
124124
server: undefined,
125+
outputMode: undefined,
125126
localize: false,
126127
budgets: [],
127128
serviceWorker: false,

0 commit comments

Comments
 (0)