Skip to content

Commit 2c6fd66

Browse files
scenario: fix browser tests(?)
(? = idk if this will also work in CI, let’s find out!)
1 parent ffa578a commit 2c6fd66

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

packages/scenario/vitest.config.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ export default defineConfig(({ mode }) => {
5555
esbuildOptions: {
5656
target: 'esnext',
5757
},
58-
exclude: ['@getodk/xforms-engine'],
5958
force: true,
6059
include: ['papaparse'],
6160
},
@@ -68,7 +67,7 @@ export default defineConfig(({ mode }) => {
6867
test: {
6968
browser: {
7069
enabled: BROWSER_ENABLED,
71-
instances: [{ browser: BROWSER_NAME }],
70+
instances: BROWSER_NAME != null ? [{ browser: BROWSER_NAME }] : [],
7271
provider: 'playwright',
7372
headless: true,
7473
screenshotFailures: false,
@@ -78,6 +77,14 @@ export default defineConfig(({ mode }) => {
7877
exclude,
7978

8079
deps: {
80+
optimizer: {
81+
web: {
82+
// Prevent loading multiple instances of Solid.
83+
//
84+
// (Copypasta from `@getodk/common`)
85+
exclude: ['solid-js'],
86+
},
87+
},
8188
moduleDirectories: ['node_modules', '../../node_modules'],
8289
},
8390
environment: TEST_ENVIRONMENT,

0 commit comments

Comments
 (0)