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 ab8f61b commit 9f6a2d9Copy full SHA for 9f6a2d9
packages/datastore/__tests__/DataStore/sanityCheck.test.ts
@@ -1,4 +1,5 @@
1
import 'fake-indexeddb/auto';
2
+import { Amplify } from '@aws-amplify/core';
3
import { DataStore as DataStoreType } from '../../src/datastore/datastore';
4
import { Predicates } from '../../src/predicates';
5
import {
@@ -10,6 +11,10 @@ import {
10
11
pause,
12
} from '../helpers';
13
14
+jest.spyOn(Amplify, 'assertConfigured').mockImplementation(jest.fn());
15
+jest.spyOn(Amplify, 'configure').mockImplementation(jest.fn());
16
+jest.spyOn(Amplify, 'getConfig').mockReturnValue({});
17
+
18
let { DataStore } = getDataStore() as {
19
DataStore: typeof DataStoreType;
20
};
0 commit comments