Skip to content
This repository was archived by the owner on Jun 12, 2025. It is now read-only.

Commit 9a66146

Browse files
authored
Merge pull request #178 from mverissimo/chore/bump-deps
feat(bump deps): trigger release
2 parents 5292322 + d2be339 commit 9a66146

File tree

10 files changed

+691
-226
lines changed

10 files changed

+691
-226
lines changed

package.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -56,51 +56,51 @@
5656
}
5757
},
5858
"devDependencies": {
59-
"@babel/preset-env": "7.13.12",
59+
"@babel/preset-env": "7.14.0",
6060
"@babel/preset-typescript": "7.13.0",
6161
"@commitlint/cli": "12.1.1",
6262
"@commitlint/config-conventional": "12.1.1",
63-
"@emotion/babel-plugin": "^11.2.0",
63+
"@emotion/babel-plugin": "^11.3.0",
6464
"@emotion/babel-preset-css-prop": "^11.2.0",
6565
"@emotion/eslint-plugin": "^11.2.0",
66-
"@emotion/jest": "^11.2.1",
67-
"@preconstruct/cli": "2.0.6",
66+
"@emotion/jest": "^11.3.0",
67+
"@preconstruct/cli": "2.0.7",
6868
"@semantic-release/commit-analyzer": "8.0.1",
69-
"@semantic-release/github": "7.2.0",
70-
"@semantic-release/npm": "7.1.0",
69+
"@semantic-release/github": "7.2.1",
70+
"@semantic-release/npm": "7.1.1",
7171
"@semantic-release/release-notes-generator": "9.0.2",
72-
"@testing-library/jest-dom": "5.11.10",
72+
"@testing-library/jest-dom": "5.12.0",
7373
"@testing-library/react": "11.2.6",
74-
"@types/jest": "26.0.22",
75-
"@typescript-eslint/eslint-plugin": "4.20.0",
76-
"@typescript-eslint/parser": "4.20.0",
74+
"@types/jest": "26.0.23",
75+
"@typescript-eslint/eslint-plugin": "4.22.0",
76+
"@typescript-eslint/parser": "4.22.0",
7777
"babel-eslint": "10.1.0",
7878
"babel-jest": "26.6.3",
7979
"babel-plugin-lodash": "^3.3.4",
8080
"cz-conventional-changelog": "3.3.0",
8181
"docz": "2.3.1",
82-
"eslint": "7.23.0",
82+
"eslint": "7.25.0",
8383
"eslint-config-react-app": "6.0.0",
84-
"eslint-plugin-flowtype": "5.4.0",
84+
"eslint-plugin-flowtype": "5.7.2",
8585
"eslint-plugin-import": "2.22.1",
8686
"eslint-plugin-jsx-a11y": "6.4.1",
87-
"eslint-plugin-prettier": "3.3.1",
88-
"eslint-plugin-react": "7.23.1",
87+
"eslint-plugin-prettier": "3.4.0",
88+
"eslint-plugin-react": "7.23.2",
8989
"eslint-plugin-react-hooks": "4.2.0",
90-
"eslint-plugin-testing-library": "3.10.2",
90+
"eslint-plugin-testing-library": "4.1.2",
9191
"husky": "^6.0.0",
9292
"jest": "26.6.3",
9393
"lint-staged": "10.5.4",
9494
"prettier": "2.2.1",
9595
"pretty-quick": "3.1.0",
9696
"semantic-release": "17.4.2",
97-
"stylelint": "13.12.0",
98-
"ts-jest": "26.5.4",
99-
"typescript": "4.2.3"
97+
"stylelint": "13.13.1",
98+
"ts-jest": "26.5.5",
99+
"typescript": "4.2.4"
100100
},
101101
"dependencies": {
102102
"@emotion/react": "^11.1.5",
103-
"@emotion/styled": "^11.1.5",
103+
"@emotion/styled": "^11.3.0",
104104
"react": "^17.0.2",
105105
"react-dom": "^17.0.2"
106106
}

src/components/Col/Col.test.tsx

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ import { Breakpoints } from '../../types/emotion';
55

66
describe('Col', () => {
77
it('should render with default styles on media %s', () => {
8-
const { container } = render(<Col>Col</Col>);
8+
const {
9+
container: { firstChild },
10+
} = render(<Col>Col</Col>);
911

10-
expect(container.firstChild).toMatchSnapshot();
12+
expect(firstChild).toMatchSnapshot();
1113
});
1214

1315
it.each([
@@ -21,9 +23,11 @@ describe('Col', () => {
2123
] as Record<Breakpoints, number>[])(
2224
'should render with width styles on media %s',
2325
(size) => {
24-
const { container } = render(<Col {...size}>Col</Col>);
26+
const {
27+
container: { firstChild },
28+
} = render(<Col {...size}>Col</Col>);
2529

26-
expect(container.firstChild).toMatchSnapshot();
30+
expect(firstChild).toMatchSnapshot();
2731
}
2832
);
2933

@@ -38,9 +42,11 @@ describe('Col', () => {
3842
] as Record<Breakpoints, number>[])(
3943
'should render with offset styles on media %s',
4044
(size) => {
41-
const { container } = render(<Col offset={size}>Col</Col>);
45+
const {
46+
container: { firstChild },
47+
} = render(<Col offset={size}>Col</Col>);
4248

43-
expect(container.firstChild).toMatchSnapshot();
49+
expect(firstChild).toMatchSnapshot();
4450
}
4551
);
4652

@@ -55,13 +61,15 @@ describe('Col', () => {
5561
] as Record<Breakpoints, number>[])(
5662
'should handle with offset styles on media %s',
5763
(offset) => {
58-
const { container } = render(
64+
const {
65+
container: { firstChild },
66+
} = render(
5967
<Col md={8} offset={offset}>
6068
Col
6169
</Col>
6270
);
6371

64-
expect(container.firstChild).toMatchSnapshot();
72+
expect(firstChild).toMatchSnapshot();
6573
}
6674
);
6775
});

src/components/Container/Container.test.tsx

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,32 @@ import { Col } from '../Col';
66

77
describe('Container', () => {
88
it('should render with default styles for media %s', () => {
9-
const { container } = render(<Container>Container</Container>);
9+
const {
10+
container: { firstChild },
11+
} = render(<Container>Container</Container>);
1012

11-
expect(container.firstChild).toMatchSnapshot();
13+
expect(firstChild).toMatchSnapshot();
1214
});
1315

1416
it('should render with fluid styles when passed the fluid prop', () => {
15-
const { container } = render(<Container fluid>Container fluid</Container>);
17+
const {
18+
container: { firstChild },
19+
} = render(<Container fluid>Container fluid</Container>);
1620

17-
expect(container.firstChild).toMatchSnapshot();
21+
expect(firstChild).toMatchSnapshot();
1822
});
1923

2024
it('should render with debug styles when passed the debug prop', () => {
21-
const { container } = render(
25+
const {
26+
container: { firstChild },
27+
} = render(
2228
<Container debug>
2329
<Row>
2430
<Col>Col</Col>
2531
</Row>
2632
</Container>
2733
);
2834

29-
expect(container.firstChild).toMatchSnapshot();
35+
expect(firstChild).toMatchSnapshot();
3036
});
3137
});

src/components/Debugger/Debbuger.test.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ import { Debugger } from '.';
44

55
describe('Debugger', () => {
66
it('should render with current screen %s', () => {
7-
const { container } = render(<Debugger />);
7+
const {
8+
container: { firstChild },
9+
} = render(<Debugger />);
810

9-
expect(container.firstChild).toMatchSnapshot();
11+
expect(firstChild).toMatchSnapshot();
1012
});
1113
});

src/components/Debugger/Debugger.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Fragment, useState, useEffect } from 'react';
1+
import React from 'react';
22
import { withTheme } from '@emotion/react';
33

44
import { getBreakpoint } from '../../utils/get-breakpoint';
@@ -22,15 +22,15 @@ const generateKey = (pre: string | number): string => {
2222
};
2323

2424
function Debugger({ theme }: StyleProps) {
25-
const [visible, setVisible] = useState(false);
26-
const [{ screen, columns }, setState] = useState({
25+
const [visible, setVisible] = React.useState(false);
26+
const [{ screen, columns }, setState] = React.useState({
2727
screen: getBreakpoint(theme),
2828
columns: config(theme).grid.columns[getBreakpoint(theme)],
2929
});
3030

3131
const toggleVisible = () => setVisible(!visible);
3232

33-
useEffect(() => {
33+
React.useEffect(() => {
3434
const setScreen = () => {
3535
let lastScreen = screen;
3636
const currentScreen = getBreakpoint(theme);
@@ -60,7 +60,7 @@ function Debugger({ theme }: StyleProps) {
6060
}, [theme, screen]);
6161

6262
return (
63-
<Fragment>
63+
<React.Fragment>
6464
<GridOverlay visible={visible}>
6565
<Container>
6666
<Row>
@@ -78,7 +78,7 @@ function Debugger({ theme }: StyleProps) {
7878
<Button onClick={toggleVisible} isActive={visible}>
7979
{screen}
8080
</Button>
81-
</Fragment>
81+
</React.Fragment>
8282
);
8383
}
8484

src/components/Debugger/components/GridOverlay/GridOverlay.test.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,18 @@ import { GridOverlay } from '.';
55

66
describe('Grid Overlay', () => {
77
it('should render with default styles', () => {
8-
const { container } = render(<GridOverlay />);
8+
const {
9+
container: { firstChild },
10+
} = render(<GridOverlay />);
911

10-
expect(container.firstChild).toMatchSnapshot();
12+
expect(firstChild).toMatchSnapshot();
1113
});
1214

1315
it('should render with visible styles when passed the visible prop', () => {
14-
const { container } = render(<GridOverlay visible />);
16+
const {
17+
container: { firstChild },
18+
} = render(<GridOverlay visible />);
1519

16-
expect(container.firstChild).toMatchSnapshot();
20+
expect(firstChild).toMatchSnapshot();
1721
});
1822
});

src/components/Row/Row.test.tsx

Lines changed: 36 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,38 @@ import { Breakpoints, Align, Justify } from '../../types/emotion';
77

88
describe('Row', () => {
99
it('should render with default styles', () => {
10-
const { container } = render(<Row>Row</Row>);
10+
const {
11+
container: { firstChild },
12+
} = render(<Row>Row</Row>);
1113

12-
expect(container.firstChild).toMatchSnapshot();
14+
expect(firstChild).toMatchSnapshot();
1315
});
1416

1517
it('should render with reverse styles when passed the reverse prop', () => {
16-
const { container } = render(<Row reverse>Row reverse</Row>);
18+
const {
19+
container: { firstChild },
20+
} = render(<Row reverse>Row reverse</Row>);
1721

18-
expect(container.firstChild).toMatchSnapshot();
22+
expect(firstChild).toMatchSnapshot();
1923
});
2024

2125
it.each(['xs', 'sm', 'md', 'lg', 'xl'] as Breakpoints[])(
2226
'should render reverse styles on breakpoint %s',
2327
(breakpoint) => {
24-
const { container } = render(
25-
<Row reverse={[breakpoint]}>Row reverse {breakpoint}</Row>
26-
);
28+
const {
29+
container: { firstChild },
30+
} = render(<Row reverse={[breakpoint]}>Row reverse {breakpoint}</Row>);
2731

28-
expect(container.firstChild).toMatchSnapshot();
32+
expect(firstChild).toMatchSnapshot();
2933
}
3034
);
3135

3236
it('should render reverse styles with an array of breakpoints', () => {
33-
const { container } = render(
34-
<Row reverse={['xs', 'sm', 'md']}>Row reverse</Row>
35-
);
37+
const {
38+
container: { firstChild },
39+
} = render(<Row reverse={['xs', 'sm', 'md']}>Row reverse</Row>);
3640

37-
expect(container.firstChild).toMatchSnapshot();
41+
expect(firstChild).toMatchSnapshot();
3842
});
3943

4044
it.each([
@@ -44,17 +48,19 @@ describe('Row', () => {
4448
'flex-end',
4549
'stretch',
4650
] as Align[])('should render align %s styles', (propertie) => {
47-
const { container } = render(
48-
<Row align={propertie}>Row align {propertie}</Row>
49-
);
51+
const {
52+
container: { firstChild },
53+
} = render(<Row align={propertie}>Row align {propertie}</Row>);
5054

51-
expect(container.firstChild).toMatchSnapshot();
55+
expect(firstChild).toMatchSnapshot();
5256
});
5357

5458
it('should render align styles when passed the align prop as object', () => {
55-
const { container } = render(<Row align={{ md: 'center' }}>Row align</Row>);
59+
const {
60+
container: { firstChild },
61+
} = render(<Row align={{ md: 'center' }}>Row align</Row>);
5662

57-
expect(container.firstChild).toMatchSnapshot();
63+
expect(firstChild).toMatchSnapshot();
5864
});
5965

6066
it.each([
@@ -66,29 +72,31 @@ describe('Row', () => {
6672
] as Justify[])(
6773
'should render justify styles when when passed the justify %s prop as string',
6874
(propertie) => {
69-
const { container } = render(
70-
<Row justify={propertie}>Row justify {propertie}</Row>
71-
);
75+
const {
76+
container: { firstChild },
77+
} = render(<Row justify={propertie}>Row justify {propertie}</Row>);
7278

73-
expect(container.firstChild).toMatchSnapshot();
79+
expect(firstChild).toMatchSnapshot();
7480
}
7581
);
7682

7783
it('should render justify styles when passed the align prop as object', () => {
78-
const { container } = render(
79-
<Row justify={{ md: 'center' }}>Row justify</Row>
80-
);
84+
const {
85+
container: { firstChild },
86+
} = render(<Row justify={{ md: 'center' }}>Row justify</Row>);
8187

82-
expect(container.firstChild).toMatchSnapshot();
88+
expect(firstChild).toMatchSnapshot();
8389
});
8490

8591
it('should render with noGutters styles when passed the noGutters prop', () => {
86-
const { container } = render(
92+
const {
93+
container: { firstChild },
94+
} = render(
8795
<Row noGutters>
8896
<Col>Col</Col>
8997
</Row>
9098
);
9199

92-
expect(container.firstChild).toMatchSnapshot();
100+
expect(firstChild).toMatchSnapshot();
93101
});
94102
});

src/components/ScreenClass/ScreenClass.test.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@ import { ScreenClass } from '.';
55

66
describe('ScreenClass', () => {
77
it('should render with current screen %s', () => {
8-
const { container } = render(
8+
const {
9+
container: { firstChild },
10+
} = render(
911
<ScreenClass
1012
render={(screen) => {
1113
return <div>{screen}</div>;
1214
}}
1315
/>
1416
);
1517

16-
expect(container.firstChild).toMatchSnapshot();
18+
expect(firstChild).toMatchSnapshot();
1719
});
1820
});

0 commit comments

Comments
 (0)