We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13a6f6b commit c16d093Copy full SHA for c16d093
packages/framework/esm-framework/mock.tsx
@@ -154,9 +154,9 @@ function isOrdinaryObject(x) {
154
return !!x && x.constructor === Object;
155
}
156
157
-export const getConfig = jest.fn().mockReturnValue(getDefaults(configSchema));
+export const getConfig = jest.fn().mockImplementation(() => Promise.resolve(getDefaults(configSchema)));
158
159
-export const useConfig = jest.fn().mockReturnValue(getDefaults(configSchema));
+export const useConfig = jest.fn().mockImplementation(() => getDefaults(configSchema));
160
161
export function defineConfigSchema(moduleName, schema) {
162
configSchema = schema;
0 commit comments