Skip to content

Commit

Permalink
Add global CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
scinos committed Jul 22, 2021
1 parent 1e0c99d commit 95ca82b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/client/setup-test-framework.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,9 @@ jest.mock( 'sinon', () => {
}
return actualSinon;
} );

// This is used by @wordpress/components in https://github.com/WordPress/gutenberg/blob/trunk/packages/components/src/ui/utils/space.ts#L33
// JSDOM or CSSDOM don't provide an implementation for it, so for now we have to mock it.
global.CSS = {
supports: jest.fn(),
};

0 comments on commit 95ca82b

Please sign in to comment.