-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore/fix studio jest tests #25872
chore/fix studio jest tests #25872
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Ignored Deployments
|
No changes detected in Branching Preview Branches by Supabase. |
setupFiles: ['jest-canvas-mock', './tests/setup/radix'], | ||
testEnvironment: 'jsdom', | ||
testTimeout: 10000, | ||
testRegex: '(.*\\.test.(js|jsx|ts|tsx)$)', | ||
maxConcurrency: 3, | ||
maxWorkers: '50%', | ||
moduleNameMapper: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might need to do a module name mapper for the get
to a mock file for the fetchers, don't think it is resolving correctly, resulting in it not getting mocked.
Possible that it was removed in the setup files, as the mock was done globally if my memory serves correctly.
You could also do a manual module mock in jest using jest.mock("lib/...")
Attempt to reinstate our broken unit tests via jest - I've managed to get most of them working except:
logs-query.test.js