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

Commit 8cfe275

Browse files
authored
Merge pull request #169 from mverissimo/chore/improvements
Chore/improvements
2 parents 44b474f + b9584c9 commit 8cfe275

File tree

15 files changed

+809
-278
lines changed

15 files changed

+809
-278
lines changed

jest.setup.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,25 @@
11
import { createSerializer } from '@emotion/jest';
22

3+
/**
4+
* Custom matchers
5+
*/
36
expect.addSnapshotSerializer(
47
createSerializer({
58
classNameReplacer(className, index) {
69
return `grid-${index}`;
710
},
811
})
912
);
13+
14+
/**
15+
* Mocks
16+
*/
17+
Object.defineProperty(window, 'matchMedia', {
18+
value: jest.fn(() => {
19+
return {
20+
matches: true,
21+
addListener: jest.fn(),
22+
removeListener: jest.fn(),
23+
};
24+
}),
25+
});

package.json

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"lint:ci": "yarn lint --format junit -o reports/eslint/results.json",
2323
"lint:fix": "yarn lint --fix",
2424
"test": "jest --watch",
25-
"test:ci": "jest --ci --coverage -u --runInBand --json --outputFile=reports/jest/results.json",
25+
"test:ci": "jest --ci --coverage --runInBand --json --outputFile=reports/jest/results.json",
2626
"build": "preconstruct build",
2727
"prepublishOnly": "yarn build",
2828
"release": "semantic-release"
@@ -63,50 +63,48 @@
6363
]
6464
},
6565
"devDependencies": {
66-
"@babel/preset-env": "7.12.1",
67-
"@babel/preset-typescript": "7.12.1",
66+
"@babel/preset-env": "7.12.11",
67+
"@babel/preset-typescript": "7.12.7",
6868
"@commitlint/cli": "11.0.0",
6969
"@commitlint/config-conventional": "11.0.0",
7070
"@emotion/babel-preset-css-prop": "^11.0.0",
7171
"@emotion/eslint-plugin": "^11.0.0",
7272
"@emotion/jest": "^11.1.0",
73-
"@preconstruct/cli": "2.0.0",
73+
"@preconstruct/cli": "2.0.1",
7474
"@semantic-release/commit-analyzer": "8.0.1",
7575
"@semantic-release/github": "7.2.0",
76-
"@semantic-release/npm": "7.0.8",
76+
"@semantic-release/npm": "7.0.10",
7777
"@semantic-release/release-notes-generator": "9.0.1",
78-
"@testing-library/jest-dom": "5.11.6",
79-
"@testing-library/react": "11.2.1",
80-
"@types/css-mediaquery": "0.1.0",
81-
"@types/jest": "26.0.15",
82-
"@typescript-eslint/eslint-plugin": "4.8.1",
83-
"@typescript-eslint/parser": "4.8.1",
78+
"@testing-library/jest-dom": "5.11.9",
79+
"@testing-library/react": "11.2.3",
80+
"@types/jest": "26.0.20",
81+
"@typescript-eslint/eslint-plugin": "4.14.0",
82+
"@typescript-eslint/parser": "4.14.0",
8483
"babel-eslint": "10.1.0",
8584
"babel-jest": "26.6.3",
86-
"css-mediaquery": "0.1.2",
8785
"cz-conventional-changelog": "3.3.0",
8886
"docz": "2.3.1",
89-
"eslint": "7.13.0",
87+
"eslint": "7.18.0",
9088
"eslint-config-react-app": "6.0.0",
9189
"eslint-plugin-flowtype": "5.2.0",
9290
"eslint-plugin-import": "2.22.1",
9391
"eslint-plugin-jsx-a11y": "6.4.1",
94-
"eslint-plugin-prettier": "3.1.4",
95-
"eslint-plugin-react": "7.21.5",
92+
"eslint-plugin-prettier": "3.3.1",
93+
"eslint-plugin-react": "7.22.0",
9694
"eslint-plugin-react-hooks": "4.2.0",
9795
"eslint-plugin-testing-library": "3.10.1",
98-
"husky": "4.3.0",
96+
"husky": "4.3.8",
9997
"jest": "26.6.3",
100-
"lint-staged": "10.5.1",
101-
"prettier": "2.1.2",
98+
"lint-staged": "10.5.3",
99+
"prettier": "2.2.1",
102100
"pretty-quick": "3.1.0",
103-
"semantic-release": "17.2.4",
104-
"stylelint": "13.8.0",
101+
"semantic-release": "17.3.4",
102+
"stylelint": "13.9.0",
105103
"ts-jest": "26.4.4",
106-
"typescript": "4.1.2"
104+
"typescript": "4.1.3"
107105
},
108106
"dependencies": {
109-
"@emotion/react": "^11.1.1",
107+
"@emotion/react": "^11.1.4",
110108
"@emotion/styled": "^11.0.0",
111109
"react": "^17.0.1",
112110
"react-dom": "^17.0.1"

src/components/Debugger/Debugger.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Row } from '../Row';
66
import { Col } from '../Col';
77

88
import { Types } from '../../types';
9-
import { getBreakpoint } from '../../utils/getBreakpoint';
9+
import { getBreakpoint } from '../../utils/get-breakpoint';
1010
import { config } from '../../config';
1111

1212
import { Button } from './Button';

src/components/Debugger/GridOverlay.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,6 @@ const baseStyle = ({
7070
}
7171
`;
7272

73-
export const GridOverlay: FC<GridOverlayProps> = styled('div')<
74-
GridOverlayProps
75-
>(baseStyle);
73+
export const GridOverlay: FC<GridOverlayProps> = styled(
74+
'div'
75+
)<GridOverlayProps>(baseStyle);

0 commit comments

Comments
 (0)