test-utils: move mockBreakpoint to core-componets/testUtils
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
* https://mui.com/material-ui/react-use-media-query/#testing
|
||||
*
|
||||
* @public
|
||||
* @deprecated Import from `@backstage/core-components/testUtils` instead.
|
||||
*/
|
||||
export default function mockBreakpoint(options: { matches: boolean }) {
|
||||
Object.defineProperty(window, 'matchMedia', {
|
||||
|
||||
Reference in New Issue
Block a user