Skip to content

Commit

Permalink
Invalidate core-data store before each test
Browse files Browse the repository at this point in the history
  • Loading branch information
fluiddot committed Nov 9, 2021
1 parent 4ae85dc commit 347f7ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/block-library/src/embed/test/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ beforeAll( () => {
} );

beforeEach( () => {
// Invalidate embed preview resolutions
dispatch( coreStore ).invalidateResolutionForStoreSelector(
'getEmbedPreview'
);
// Invalidate all resolutions of core-data to prevent
// caching embed preview and theme supports requests.
dispatch( coreStore ).invalidateResolutionForStore();

// Mock embed responses
mockEmbedResponses( [
RICH_TEXT_EMBED_SUCCESS_RESPONSE,
Expand Down

0 comments on commit 347f7ff

Please sign in to comment.