]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
fix: remove `transformMode` from vitest config
authorHaoqun Jiang <haoqunjiang@gmail.com>
Thu, 17 Aug 2023 15:18:48 +0000 (23:18 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Thu, 17 Aug 2023 15:18:48 +0000 (23:18 +0800)
It's no longer needed in vitest 0.34:

> By default, tests with `jsdom` or `happy-dom` use `web` transform mode

https://github.com/vitest-dev/vitest/releases/tag/v0.34.0

template/config/vitest/vitest.config.js

index 42638b258e86b5884053a10c5829f030a1f38836..7b502be70e6bbe8ee1780cd84026209cb15328c2 100644 (file)
@@ -9,10 +9,7 @@ export default mergeConfig(
     test: {
       environment: 'jsdom',
       exclude: [...configDefaults.exclude, 'e2e/*'],
-      root: fileURLToPath(new URL('./', import.meta.url)),
-      transformMode: {
-        web: [/\.[jt]sx$/]
-      }
+      root: fileURLToPath(new URL('./', import.meta.url))
     }
   })
 )