Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e4d737b

Browse files
authored
chore: bump jest from 26.4.2 to 26.6.3 (typescript-eslint#3036)
* chore: bump jest and its dependencies * test: update test lint rules
1 parent de29366 commit e4d737b

File tree

4 files changed

+458
-516
lines changed

4 files changed

+458
-516
lines changed

.eslintrc.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,15 @@ module.exports = {
178178
'jest/no-jasmine-globals': 'error',
179179
'jest/no-jest-import': 'error',
180180
'jest/no-test-prefixes': 'error',
181-
'jest/no-test-callback': 'error',
181+
'jest/no-done-callback': 'error',
182182
'jest/no-test-return-statement': 'error',
183+
'jest/prefer-to-be-null': 'warn',
184+
'jest/prefer-to-be-undefined': 'warn',
185+
'jest/prefer-to-contain': 'warn',
183186
'jest/prefer-to-have-length': 'warn',
184187
'jest/prefer-spy-on': 'error',
185188
'jest/valid-expect': 'error',
189+
'jest/no-deprecated-functions': 'error',
186190
},
187191
},
188192
// plugin source files

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@
7777
"@commitlint/config-lerna-scopes": "^11.0.0",
7878
"@types/debug": "^4.1.5",
7979
"@types/glob": "^7.1.3",
80-
"@types/jest": "^26.0.10",
81-
"@types/jest-specific-snapshot": "^0.5.4",
80+
"@types/jest": "^26.0.20",
81+
"@types/jest-specific-snapshot": "^0.5.5",
8282
"@types/lodash": "^4.14.149",
8383
"@types/node": "^14.6.2",
8484
"@types/prettier": "^2.1.0",
@@ -91,11 +91,11 @@
9191
"eslint-plugin-eslint-comments": "^3.2.0",
9292
"eslint-plugin-eslint-plugin": "^2.3.0",
9393
"eslint-plugin-import": "^2.22.0",
94-
"eslint-plugin-jest": "^23.20.0",
94+
"eslint-plugin-jest": "^24.1.3",
9595
"glob": "^7.1.6",
9696
"husky": "^4.2.5",
9797
"isomorphic-fetch": "^3.0.0",
98-
"jest": "^26.4.2",
98+
"jest": "^26.6.3",
9999
"jest-specific-snapshot": "^4.0.0",
100100
"lerna": "^3.22.1",
101101
"lint-staged": "^10.2.13",

packages/scope-manager/tests/eslint-scope/es6-iteration-scope.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ describe('ES6 iteration scope', () => {
5454
expect(variables).toHaveLength(0);
5555
expect(scope.references).toHaveLength(2);
5656
expect(scope.references[0].identifier.name).toBe('console');
57-
expect(scope.references[0].resolved).toBe(null);
57+
expect(scope.references[0].resolved).toBeNull();
5858
expect(scope.references[1].identifier.name).toBe('i');
5959
expect(scope.references[1].resolved).toBe(iterVariables[0]);
6060
});
@@ -112,7 +112,7 @@ describe('ES6 iteration scope', () => {
112112
expect(variables).toHaveLength(0);
113113
expect(scope.references).toHaveLength(2);
114114
expect(scope.references[0].identifier.name).toBe('console');
115-
expect(scope.references[0].resolved).toBe(null);
115+
expect(scope.references[0].resolved).toBeNull();
116116
expect(scope.references[1].identifier.name).toBe('i');
117117
expect(scope.references[1].resolved).toBe(iterVariables[0]);
118118
});

0 commit comments

Comments
 (0)