Revamping to matrix style
This commit is contained in:
11
node_modules/@vercel/speed-insights/test.setup.ts
generated
vendored
Normal file
11
node_modules/@vercel/speed-insights/test.setup.ts
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import { beforeEach } from 'vitest';
|
||||
import '@testing-library/jest-dom/vitest';
|
||||
|
||||
beforeEach(() => {
|
||||
if (typeof window === 'undefined') return;
|
||||
// reset dom before each test
|
||||
const html = document.querySelector('html');
|
||||
if (html) {
|
||||
html.innerHTML = '';
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user