Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Add a mock to fix the tests failing.

Ivan Vasilove46a34075ce8
diff --git a/studio/__mocks__/styleMock.js b/studio/__mocks__/styleMock.js
new file mode 100644
index 00000000000..4ba52ba2c8d
--- /dev/null
+++ b/studio/__mocks__/styleMock.js
@@ -0,0 +1 @@
+module.exports = {}
diff --git a/studio/jest.config.js b/studio/jest.config.js
index ed0cc2bb5db..ee95db4b475 100644
--- a/studio/jest.config.js
+++ b/studio/jest.config.js
@@ -14,6 +14,7 @@ module.exports = {
maxConcurrency: 3,
maxWorkers: '50%',
moduleNameMapper: {
+ '\\.(css)$': '<rootDir>/__mocks__/styleMock.js',
'^@ui/(.*)$': '<rootDir>/../packages/ui/src/$1',
},
}