test-utils
test-utils copied to clipboard
feat(deps)!: upgrade to vitest v4
๐ Linked issue
โ Type of change
- [ ] ๐ Documentation (updates to the documentation or readme)
- [ ] ๐ Bug fix (a non-breaking change that fixes an issue)
- [ ] ๐ Enhancement (improving an existing functionality)
- [ ] โจ New feature (a non-breaking change that adds functionality)
- [ ] ๐งน Chore (updates to the build process or auxiliary tools and libraries)
- [ ] โ ๏ธ Breaking change (fix or feature that would cause existing functionality to change)
๐ Description
this updates us to vitest v4 and drops support for previous versions of vitest.
there's still an issue with starting vitest programmatically (in the nuxt devtools) but it's unclear to me if this is a nuxt/test-utils bug or a vitest one
There is a problem with runtime config:
runtimeConfig: {
public: {
whatever: {
hello: 'world',
},
},
},
it('renders', () => {
const config = useRuntimeConfig()
console.log('public', config.public)
})
public {}
Reproduction: https://github.com/OrbisK/test-utils-fork/tree/feat/vitest-4-reprod-runtimeconfig