Skip to content

Commit

Permalink
fix: remove transformMode from vitest config
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sodatea committed Aug 17, 2023
1 parent 5066667 commit 653f953
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions template/config/vitest/vitest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
})
)

0 comments on commit 653f953

Please sign in to comment.