From e444d1da33bb93372130065740df0b89b9dbb29c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Zieli=C5=84ski?= Date: Mon, 28 Nov 2022 21:47:18 +0000 Subject: [PATCH] Adjust blocks unit tests --- packages/blocks/src/api/raw-handling/test/utils.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/blocks/src/api/raw-handling/test/utils.js b/packages/blocks/src/api/raw-handling/test/utils.js index 56c38bbb38c965..be0d73c22e9dce 100644 --- a/packages/blocks/src/api/raw-handling/test/utils.js +++ b/packages/blocks/src/api/raw-handling/test/utils.js @@ -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 ) => {