Skip to content

Commit 51a11f3

Browse files
common, engine, xpath: fix type errors in Vite(st) configs
1 parent 2c6fd66 commit 51a11f3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/common/vitest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default defineConfig(() => {
4545
test: {
4646
browser: {
4747
enabled: BROWSER_ENABLED,
48-
instances: [{ browser: BROWSER_NAME }],
48+
instances: BROWSER_NAME != null ? [{ browser: BROWSER_NAME }] : [],
4949
provider: 'playwright',
5050
headless: true,
5151
screenshotFailures: false,

packages/xforms-engine/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export default defineConfig(({ mode }) => {
115115
test: {
116116
browser: {
117117
enabled: BROWSER_ENABLED,
118-
instances: [{ browser: BROWSER_NAME }],
118+
instances: BROWSER_NAME != null ? [{ browser: BROWSER_NAME }] : [],
119119
provider: 'playwright',
120120
headless: true,
121121
screenshotFailures: false,

packages/xpath/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export default defineConfig(({ mode }) => {
131131
test: {
132132
browser: {
133133
enabled: BROWSER_ENABLED,
134-
instances: [{ browser: BROWSER_NAME }],
134+
instances: BROWSER_NAME != null ? [{ browser: BROWSER_NAME }] : [],
135135
provider: 'playwright',
136136
headless: true,
137137
screenshotFailures: false,

0 commit comments

Comments
 (0)