We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb0b1a1 commit 3468945Copy full SHA for 3468945
polaris-react/src/components/AccountConnection/tests/AccountConnection.test.tsx
@@ -1,11 +1,20 @@
1
import React from 'react';
2
import {mountWithApp} from 'tests/utilities';
3
+import {matchMedia} from '@shopify/jest-dom-mocks';
4
5
import {Avatar} from '../../Avatar';
6
import {Button} from '../../Button';
7
import {AccountConnection} from '../AccountConnection';
8
9
describe('<AccountConnection />', () => {
10
+ beforeEach(() => {
11
+ matchMedia.mock();
12
+ });
13
+
14
+ afterEach(() => {
15
+ matchMedia.restore();
16
17
18
describe('title', () => {
19
it('shows the title when one is provided', () => {
20
const title = 'Example app';
0 commit comments