The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fixed failing tests
TzeYiing04cb631ddb3d
diff --git a/studio/tests/setup/radix.js b/studio/tests/setup/radix.jsindex 84e704ffc1d..de1452ab68d 100644--- a/studio/tests/setup/radix.js+++ b/studio/tests/setup/radix.js@@ -1,16 +1,16 @@/*** Required setup adapted from https://github.com/radix-ui/primitives/issues/856#issuecomment-928704064- *+ ** Implements a custom PointerEvent that can then be used to trigger the radix dropdown.* This is required as JSdom has not implemented the PointerEvent (see https://github.com/testing-library/react-testing-library/issues/838#issuecomment-735259406)- *+ ** Furthermore, ResizeObserver and DomRect are both not available in JSdom (see https://github.com/radix-ui/primitives/issues/856)- *+ ** Effects of this setup file:* - sets PointerEvent to window* - sets ResizeObserver to window* - sets DOMRect to window- *+ ** Needed to interact with dropdown components, with the `clickDropdown` helper.*/@@ -26,19 +26,17 @@ class PointerEvent extends Event {}}-window.PointerEvent = PointerEvent;+window.PointerEvent = PointerEvent-// https://github.com/radix-ui/primitives/issues/420#issuecomment-771615182+// // https://github.com/radix-ui/primitives/issues/420#issuecomment-771615182window.ResizeObserver = class ResizeObserver {constructor(cb) {- this.cb = cb;- }- observe() {- this.cb([{ borderBoxSize: { inlineSize: 0, blockSize: 0 } }]);+ this.cb = cb}+ observe() {}unobserve() {}disconnect() {}-};+}window.DOMRect = {fromRect: () => ({@@ -49,5 +47,4 @@ window.DOMRect = {width: 0,height: 0,}),-};-+}