You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

18 lines
415 B

// Try this import style instead
import { expect, afterEach } from 'vitest';
import { cleanup } from '@testing-library/react';
import * as matchers from '@testing-library/jest-dom/matchers';
// Add the matchers (should work with * as import)
expect.extend(matchers);
// Mock ResizeObserver
global.ResizeObserver = class {
observe() { }
unobserve() { }
disconnect() { }
};
afterEach(() => {
cleanup();
});