Skip to content

Commit 0342127

Browse files
authored
fix(vitest): add transformMode config for jsx component test (vuejs#269)
1 parent c4e0f15 commit 0342127

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

template/config/vitest/vitest.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ export default mergeConfig(
99
test: {
1010
environment: 'jsdom',
1111
exclude: [...configDefaults.exclude, 'e2e/*'],
12-
root: fileURLToPath(new URL('./', import.meta.url))
12+
root: fileURLToPath(new URL('./', import.meta.url)),
13+
transformMode: {
14+
web: [/\.[jt]sx$/],
15+
},
1316
}
1417
})
1518
)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy