Skip to content

Commit

Permalink
fix(deps): update nextjs monorepo to v12.2.4
Browse files Browse the repository at this point in the history
- fix(deps): update dependency eslint-plugin-jest to v26.7.0
  • Loading branch information
ljosberinn committed Aug 4, 2022
1 parent 2264057 commit d8f297a
Show file tree
Hide file tree
Showing 11 changed files with 148 additions and 131 deletions.
5 changes: 5 additions & 0 deletions __tests__/overrides/__snapshots__/jest.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ exports[`createJestRules default 1`] = `
"jest/consistent-test-it": "off",
"jest/expect-expect": "off",
"jest/lowercase-name": "off",
"jest/max-expects": "off",
"jest/max-nested-describe": "off",
"jest/no-alias-methods": "off",
"jest/no-commented-out-tests": "warn",
Expand Down Expand Up @@ -114,6 +115,7 @@ exports[`createJestRules with create-react-app 1`] = `
"jest/consistent-test-it": "off",
"jest/expect-expect": "off",
"jest/lowercase-name": "off",
"jest/max-expects": "off",
"jest/max-nested-describe": "off",
"jest/no-alias-methods": "off",
"jest/no-commented-out-tests": "warn",
Expand Down Expand Up @@ -208,6 +210,7 @@ exports[`createJestRules with typescript 1`] = `
"jest/consistent-test-it": "off",
"jest/expect-expect": "off",
"jest/lowercase-name": "off",
"jest/max-expects": "off",
"jest/max-nested-describe": "off",
"jest/no-alias-methods": "off",
"jest/no-commented-out-tests": "warn",
Expand Down Expand Up @@ -436,6 +439,7 @@ exports[`override snapshots with jest-dom 1`] = `
"jest/consistent-test-it": "off",
"jest/expect-expect": "off",
"jest/lowercase-name": "off",
"jest/max-expects": "off",
"jest/max-nested-describe": "off",
"jest/no-alias-methods": "off",
"jest/no-commented-out-tests": "warn",
Expand Down Expand Up @@ -528,6 +532,7 @@ exports[`override snapshots with testing-lib 1`] = `
"jest/consistent-test-it": "off",
"jest/expect-expect": "off",
"jest/lowercase-name": "off",
"jest/max-expects": "off",
"jest/max-nested-describe": "off",
"jest/no-alias-methods": "off",
"jest/no-commented-out-tests": "warn",
Expand Down
1 change: 1 addition & 0 deletions integration/cra-js/eslint-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@
"rules": {
"jest/consistent-test-it": "off",
"jest/expect-expect": "off",
"jest/max-expects": "off",
"jest/lowercase-name": "off",
"jest/max-nested-describe": "off",
"jest/no-alias-methods": "off",
Expand Down
6 changes: 3 additions & 3 deletions integration/cra-js/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1926,9 +1926,9 @@
integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==

"@types/mime@*":
version "3.0.0"
resolved "https://registry.yarnpkg.com/@types/mime/-/mime-3.0.0.tgz#e9a9903894405c6a6551f1774df4e64d9804d69c"
integrity sha512-fccbsHKqFDXClBZTDLA43zl0+TbxyIwyzIzwwhvoJvhNjOErCdeX2xJbURimv2EbSVUGav001PaCJg4mZxMl4w==
version "3.0.1"
resolved "https://registry.yarnpkg.com/@types/mime/-/mime-3.0.1.tgz#5f8f2bca0a5863cb69bc0b0acd88c96cb1d4ae10"
integrity sha512-Y4XFY5VJAuw0FgAqPNd6NNoV44jbq9Bz2L7Rh/J6jLTiHBSBJa9fxqQIvkIld4GsoDOcCbvzOUAbLPsSKKg+uA==

"@types/node@*":
version "18.6.3"
Expand Down
1 change: 1 addition & 0 deletions integration/cra-ts/eslint-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@
"rules": {
"jest/consistent-test-it": "off",
"jest/expect-expect": "off",
"jest/max-expects": "off",
"jest/lowercase-name": "off",
"jest/max-nested-describe": "off",
"jest/no-alias-methods": "off",
Expand Down
6 changes: 3 additions & 3 deletions integration/cra-ts/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1934,9 +1934,9 @@
integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==

"@types/mime@*":
version "3.0.0"
resolved "https://registry.yarnpkg.com/@types/mime/-/mime-3.0.0.tgz#e9a9903894405c6a6551f1774df4e64d9804d69c"
integrity sha512-fccbsHKqFDXClBZTDLA43zl0+TbxyIwyzIzwwhvoJvhNjOErCdeX2xJbURimv2EbSVUGav001PaCJg4mZxMl4w==
version "3.0.1"
resolved "https://registry.yarnpkg.com/@types/mime/-/mime-3.0.1.tgz#5f8f2bca0a5863cb69bc0b0acd88c96cb1d4ae10"
integrity sha512-Y4XFY5VJAuw0FgAqPNd6NNoV44jbq9Bz2L7Rh/J6jLTiHBSBJa9fxqQIvkIld4GsoDOcCbvzOUAbLPsSKKg+uA==

"@types/node@*":
version "18.6.3"
Expand Down
1 change: 1 addition & 0 deletions integration/jest/eslint-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@
"rules": {
"jest/consistent-test-it": "off",
"jest/expect-expect": "off",
"jest/max-expects": "off",
"jest/lowercase-name": "off",
"jest/max-nested-describe": "off",
"jest/no-alias-methods": "off",
Expand Down
6 changes: 3 additions & 3 deletions integration/jest/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2597,9 +2597,9 @@ yallist@^4.0.0:
integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==

yargs-parser@^21.0.0:
version "21.1.0"
resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.0.tgz#a11d06a3bf57f064e951aa3ef55fcf3a5705f876"
integrity sha512-xzm2t63xTV/f7+bGMSRzLhUNk1ajv/tDoaD5OeGyC3cFo2fl7My9Z4hS3q2VdQ7JaLvTxErO8Jp5pRIFGMD/zg==
version "21.1.1"
resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35"
integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==

yargs@^17.3.1:
version "17.5.1"
Expand Down
12 changes: 6 additions & 6 deletions integration/nest-ts/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -962,9 +962,9 @@
integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==

"@types/mime@*":
version "3.0.0"
resolved "https://registry.yarnpkg.com/@types/mime/-/mime-3.0.0.tgz#e9a9903894405c6a6551f1774df4e64d9804d69c"
integrity sha512-fccbsHKqFDXClBZTDLA43zl0+TbxyIwyzIzwwhvoJvhNjOErCdeX2xJbURimv2EbSVUGav001PaCJg4mZxMl4w==
version "3.0.1"
resolved "https://registry.yarnpkg.com/@types/mime/-/mime-3.0.1.tgz#5f8f2bca0a5863cb69bc0b0acd88c96cb1d4ae10"
integrity sha512-Y4XFY5VJAuw0FgAqPNd6NNoV44jbq9Bz2L7Rh/J6jLTiHBSBJa9fxqQIvkIld4GsoDOcCbvzOUAbLPsSKKg+uA==

"@types/node@*":
version "18.6.3"
Expand Down Expand Up @@ -4638,9 +4638,9 @@ yargs-parser@20.x:
integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==

yargs-parser@^21.0.0:
version "21.1.0"
resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.0.tgz#a11d06a3bf57f064e951aa3ef55fcf3a5705f876"
integrity sha512-xzm2t63xTV/f7+bGMSRzLhUNk1ajv/tDoaD5OeGyC3cFo2fl7My9Z4hS3q2VdQ7JaLvTxErO8Jp5pRIFGMD/zg==
version "21.1.1"
resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35"
integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==

yargs@^17.3.1:
version "17.5.1"
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"@babel/core": "7.18.10",
"@babel/eslint-parser": "7.18.9",
"@babel/preset-react": "7.18.6",
"@next/eslint-plugin-next": "12.2.2",
"@next/eslint-plugin-next": "12.2.4",
"@typescript-eslint/eslint-plugin": "5.32.0",
"@typescript-eslint/parser": "5.32.0",
"confusing-browser-globals": "1.0.11",
Expand All @@ -102,7 +102,7 @@
"eslint-import-resolver-node": "0.3.6",
"eslint-import-resolver-typescript": "3.4.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-jest": "26.5.3",
"eslint-plugin-jest": "26.7.0",
"eslint-plugin-jest-dom": "4.0.2",
"eslint-plugin-jest-formatting": "3.1.0",
"eslint-plugin-jsx-a11y": "6.6.1",
Expand Down Expand Up @@ -130,7 +130,7 @@
"eslint": "8.21.0",
"jest": "28.1.3",
"jest-watch-typeahead": "0.6.5",
"next": "12.2.2",
"next": "12.2.4",
"prettier": "2.7.1",
"rimraf": "3.0.2",
"semantic-release": "19.0.3"
Expand Down
9 changes: 9 additions & 0 deletions src/overrides/jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,15 @@ export const createJestRules: RulesCreator = ({
*/
'jest/expect-expect': 'off',

/**
* enforces a maximum number assertion calls in a test body
*
* off because subjective
*
* @see https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/max-expects.md
*/
'jest/max-expects': 'off',

/**
* off because seems arbitrary, usually names are indeed lowercase but some tests
* might very well begin with an uppercase character
Expand Down
Loading

0 comments on commit d8f297a

Please sign in to comment.