Skip to content

Commit

Permalink
Fix partial mocking of blocks package
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Nov 18, 2024
1 parent d636bac commit a599a3d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ const blockLabelMap = {
};

jest.mock( '@wordpress/blocks', () => {
const actualImplementation = jest.requireActual( '@wordpress/blocks' );
return {
...actualImplementation,
isReusableBlock( { title } ) {
return title === 'Reusable Block';
},
Expand Down

0 comments on commit a599a3d

Please sign in to comment.