fix: resolved issue with being unable to scroll up in the input field
This commit is contained in:
+13
-3
@@ -1,7 +1,17 @@
|
||||
import "@testing-library/jest-dom";
|
||||
import { expect, afterEach } from 'vitest';
|
||||
import { cleanup } from '@testing-library/react';
|
||||
import * as matchers from "@testing-library/jest-dom/matchers";
|
||||
|
||||
globalThis.ResizeObserver = class {
|
||||
class ResizeObserver {
|
||||
observe() { }
|
||||
unobserve() { }
|
||||
disconnect() { }
|
||||
};
|
||||
}
|
||||
|
||||
globalThis.ResizeObserver = ResizeObserver;
|
||||
|
||||
expect.extend(matchers);
|
||||
|
||||
afterEach(() => {
|
||||
cleanup();
|
||||
});
|
||||
Reference in New Issue
Block a user