Adds user management
This commit is contained in:
@@ -32,6 +32,21 @@ if (typeof globalAny.ResizeObserver === 'undefined') {
|
||||
};
|
||||
}
|
||||
|
||||
// Radix UI uses pointer capture APIs not present in jsdom.
|
||||
if (typeof Element.prototype.hasPointerCapture === 'undefined') {
|
||||
Element.prototype.hasPointerCapture = () => false;
|
||||
}
|
||||
if (typeof Element.prototype.setPointerCapture === 'undefined') {
|
||||
Element.prototype.setPointerCapture = () => {};
|
||||
}
|
||||
if (typeof Element.prototype.releasePointerCapture === 'undefined') {
|
||||
Element.prototype.releasePointerCapture = () => {};
|
||||
}
|
||||
// Radix scroll-into-view
|
||||
if (typeof Element.prototype.scrollIntoView === 'undefined') {
|
||||
Element.prototype.scrollIntoView = () => {};
|
||||
}
|
||||
|
||||
beforeAll(() => server.listen({ onUnhandledRequest: 'error' }));
|
||||
|
||||
afterEach(() => {
|
||||
|
||||
Reference in New Issue
Block a user