Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
Something went wrong. Try again.
1234567891011121314import { afterEach, beforeEach } from 'vitest'
function removeStyles() { document.head.querySelectorAll('style').forEach(style => style.remove())}export function useRemoveStyles() { beforeEach(() => removeStyles()) afterEach(() => removeStyles())
return { removeStyles, }}