Skip to content

Commit bde9d3b

Browse files
committed
Merge branch 'migration/jest' into develop
2 parents fc0130b + 78177fb commit bde9d3b

File tree

6 files changed

+45
-3
lines changed

6 files changed

+45
-3
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
node_modules
22
dist
3+
coverage
34
out
45
public
56
jest.config.js

.eslintrc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"root": true,
33
"env": {
44
"browser": true,
5-
"node": true
5+
"node": true,
6+
"jest/globals": true
67
},
78
"parserOptions": {
89
"project": [
@@ -12,14 +13,17 @@
1213
},
1314
"plugins": [
1415
"@typescript-eslint",
16+
"jest",
1517
"import"
1618
],
1719
"extends": [
1820
"airbnb",
1921
"airbnb/hooks",
2022
"airbnb-typescript",
2123
"plugin:@typescript-eslint/recommended",
22-
"plugin:@typescript-eslint/recommended-requiring-type-checking"
24+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
25+
"plugin:jest/recommended",
26+
"plugin:jest/style"
2327
],
2428
"rules": {
2529
"max-len": [
@@ -48,4 +52,4 @@
4852
],
4953
"@typescript-eslint/lines-between-class-members": "off"
5054
}
51-
}
55+
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.vscode/
2+
coverage/
23
dist/
34
node_modules/
45
out/

jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@ module.exports = config = {
2525
testMatch: [
2626
'**/tests/**/*.(spec|test).(ts?(x)|js?(x))',
2727
],
28+
collectCoverage: true,
2829
verbose: true,
2930
};

package-lock.json

Lines changed: 34 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"eslint-config-airbnb-typescript": "^17.0.0",
5959
"eslint-import-resolver-webpack": "^0.13.2",
6060
"eslint-plugin-import": "^2.26.0",
61+
"eslint-plugin-jest": "^26.5.3",
6162
"eslint-plugin-jsx-a11y": "^6.6.0",
6263
"eslint-plugin-react": "^7.30.1",
6364
"eslint-plugin-react-hooks": "^4.6.0",

0 commit comments

Comments
 (0)