Skip to content

Commit 3468945

Browse files
committed
Update AccountConnection.test.tsx
1 parent eb0b1a1 commit 3468945

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

polaris-react/src/components/AccountConnection/tests/AccountConnection.test.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
import React from 'react';
22
import {mountWithApp} from 'tests/utilities';
3+
import {matchMedia} from '@shopify/jest-dom-mocks';
34

45
import {Avatar} from '../../Avatar';
56
import {Button} from '../../Button';
67
import {AccountConnection} from '../AccountConnection';
78

89
describe('<AccountConnection />', () => {
10+
beforeEach(() => {
11+
matchMedia.mock();
12+
});
13+
14+
afterEach(() => {
15+
matchMedia.restore();
16+
});
17+
918
describe('title', () => {
1019
it('shows the title when one is provided', () => {
1120
const title = 'Example app';

0 commit comments

Comments
 (0)