We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc0e1dc commit 6576668Copy full SHA for 6576668
src/utils/test-mocks.js
@@ -22,6 +22,7 @@ jest.mock( '@automattic/jetpack-script-data', () => ( {
22
isSimpleSite: jest.fn(),
23
siteHasFeature: jest.fn(),
24
getMyJetpackUrl: jest.fn( () => 'https://example.com/add-license' ),
25
+ currentUserCan: jest.fn( () => true ),
26
} ) );
27
28
jest.mock( '@wordpress/editor', () => ( {
@@ -66,6 +67,10 @@ jest.mock( './', () => ( {
66
67
hasSocialPaidFeatures: jest.fn( () => false ),
68
69
70
+jest.mock( '../social-store/hydrate-stores.ts', () => ( {
71
+ hydrateStores: jest.fn(),
72
+} ) );
73
+
74
// Store
75
const defaultStore = {
76
getSocialModuleSettings: () => ( { publicize: true } ),
0 commit comments