mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 19:05:06 +03:00
* Add next to pnpm catalog and use that next version from all apps and packages. * Remove vite direct dependency. * Set the @types/node to version 20. * Stabilize supports-color by adding it in the main package.json. This will make it appear in all packages that have it as optional. * Use built-in matchers for vitest in @testing-library/jest-dom. * Add libpg-query as a dependency to docs. * Remove nextjs-node-loader for the built-in external packages feature on nextjs. * Clean up extra comment.
UI Testing Notes
<Popover> vs <Dropdown>
When simulating clicks on these components, do the following:
// for Popovers
import userEvent from '@testing-library/user-event'
userEvent.click('Hello world')
// for Dropdowns
import clickDropdown from 'tests/helpers'
clickDropdown('Hello world')
Rules
- All tests should be run consistently (avoid situations whereby tests fails "sometimes")