Commit 6da2c5e
committed
refactor(@angular/build): automatically enable headless mode in CI for vitest
The Vitest browser provider configuration is updated to be more intelligent in automated environments.
Previously, headless mode was only triggered if the browser name included headless. This change automatically enables headless mode when the `CI` environment variable is detected, which is standard practice for continuous integration pipelines.
Additionally, the `ui` property is now explicitly set to the inverse of the `headless` state, preventing the Vitest UI from attempting to render in a non-interactive environment. A `satisfies` clause has also been added to improve type safety against the Vitest configuration options.1 parent c119910 commit 6da2c5e
1 file changed
Lines changed: 6 additions & 3 deletions
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
86 | 89 | | |
87 | 90 | | |
88 | 91 | | |
89 | | - | |
90 | | - | |
| 92 | + | |
| 93 | + | |
91 | 94 | | |
92 | 95 | | |
93 | 96 | | |
94 | | - | |
| 97 | + | |
95 | 98 | | |
96 | 99 | | |
97 | 100 | | |
0 commit comments