Skip to content

Commit 172e63b

Browse files
committed
Adjust blocks unit tests
1 parent dff1ba5 commit 172e63b

File tree

1 file changed

+14
-0
lines changed
  • packages/blocks/src/api/raw-handling/test

1 file changed

+14
-0
lines changed

packages/blocks/src/api/raw-handling/test/utils.js

+14
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,20 @@ import { getBlockContentSchemaFromTransforms, isPlain } from '../utils';
1010
import { store as mockStore } from '../../../store';
1111
import { STORE_NAME as mockStoreName } from '../../../store/constants';
1212

13+
jest.mock( '@wordpress/experiments', () => {
14+
return {
15+
__dangerousOptInToUnstableAPIsOnlyForCoreModules: () => {
16+
return {
17+
unlock: () => {
18+
return {
19+
registerPrivateActions: () => {},
20+
registerPrivateSelectors: () => {},
21+
};
22+
},
23+
};
24+
},
25+
};
26+
} );
1327
jest.mock( '@wordpress/data', () => {
1428
return {
1529
select: jest.fn( ( store ) => {

0 commit comments

Comments
 (0)