Skip to content

Commit

Permalink
Adjust blocks unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed Dec 22, 2022
1 parent c157794 commit e444d1d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/blocks/src/api/raw-handling/test/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,20 @@ import { getBlockContentSchemaFromTransforms, isPlain } from '../utils';
import { store as mockStore } from '../../../store';
import { STORE_NAME as mockStoreName } from '../../../store/constants';

jest.mock( '@wordpress/experiments', () => {
return {
__dangerousOptInToUnstableAPIsOnlyForCoreModules: () => {
return {
unlock: () => {
return {
registerPrivateActions: () => {},
registerPrivateSelectors: () => {},
};
},
};
},
};
} );
jest.mock( '@wordpress/data', () => {
return {
select: jest.fn( ( store ) => {
Expand Down

0 comments on commit e444d1d

Please sign in to comment.