File tree 10 files changed +24
-19
lines changed
stack-trace-source-maps/__tests__
stack-trace-source-maps-with-coverage
jest-matcher-utils/src/__tests__
jest-snapshot/src/__tests__
10 files changed +24
-19
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,6 @@ module.exports = {
100
100
'packages/expect/src/matchers.ts' ,
101
101
'packages/expect/src/print.ts' ,
102
102
'packages/expect/src/toThrowMatchers.ts' ,
103
- 'packages/expect/src/types.ts' ,
104
103
'packages/expect/src/utils.ts' ,
105
104
'packages/jest-core/src/ReporterDispatcher.ts' ,
106
105
'packages/jest-core/src/TestScheduler.ts' ,
@@ -259,11 +258,13 @@ module.exports = {
259
258
'website/**' ,
260
259
'**/__mocks__/**' ,
261
260
'**/__tests__/**' ,
261
+ '**/__typetests__/**' ,
262
262
'**/__performance_tests__/**' ,
263
263
'packages/diff-sequences/perf/index.js' ,
264
264
'packages/pretty-format/perf/test.js' ,
265
265
] ,
266
266
rules : {
267
+ '@typescript-eslint/no-unused-vars' : 'off' ,
267
268
'import/no-unresolved' : 'off' ,
268
269
'no-console' : 'off' ,
269
270
'no-unused-vars' : 'off' ,
Original file line number Diff line number Diff line change 5
5
* LICENSE file in the root directory of this source tree.
6
6
*/
7
7
8
- /* eslint-disable local/ban-types-eventually, @typescript-eslint/no-unused-vars */
8
+ /* eslint-disable local/ban-types-eventually */
9
9
10
10
export = function difference ( a : number , b : number ) : number {
11
11
const branch1 : boolean = true ? 1 : 0 ;
Original file line number Diff line number Diff line change 4
4
* This source code is licensed under the MIT license found in the
5
5
* LICENSE file in the root directory of this source tree.
6
6
*/
7
- // @ts -expect-error
8
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
7
+
9
8
interface NotUsedButTakesUpLines {
10
9
a : number ;
11
10
b : string ;
Original file line number Diff line number Diff line change 4
4
* This source code is licensed under the MIT license found in the
5
5
* LICENSE file in the root directory of this source tree.
6
6
*/
7
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
7
+
8
8
interface NotUsedButTakesUpLines {
9
9
a : number ;
10
10
b : string ;
Original file line number Diff line number Diff line change 5
5
* LICENSE file in the root directory of this source tree.
6
6
*/
7
7
8
+ import { expectError } from 'tsd-lite' ;
8
9
import type * as expect from 'expect' ;
9
10
10
- export type M = expect . Matchers < void , unknown > ;
11
- export type N = expect . Matchers < void > ;
12
- // @ts -expect-error: Generic type 'Matchers<R, T>' requires between 1 and 2 type arguments.
13
- export type E = expect . Matchers ;
11
+ type M = expect . Matchers < void , unknown > ;
12
+ type N = expect . Matchers < void > ;
13
+
14
+ expectError ( ( ) => {
15
+ type E = expect . Matchers ;
16
+ } ) ;
Original file line number Diff line number Diff line change 26
26
},
27
27
"devDependencies" : {
28
28
"@jest/test-utils" : " ^27.4.6" ,
29
+ "@tsd/typescript" : " ~4.1.5" ,
29
30
"chalk" : " ^4.0.0" ,
30
31
"fast-check" : " ^2.0.0" ,
31
- "immutable" : " ^4.0.0"
32
+ "immutable" : " ^4.0.0" ,
33
+ "tsd-lite" : " ^0.5.1"
32
34
},
33
35
"engines" : {
34
36
"node" : " ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0"
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ describe('Replaceable', () => {
39
39
40
40
test ( 'init with other type should throw error' , ( ) => {
41
41
expect ( ( ) => {
42
- //eslint-disable-next-line @typescript-eslint/no-unused-vars
43
42
const replaceable = new Replaceable ( new Date ( ) ) ;
44
43
} ) . toThrow ( 'Type date is not support in Replaceable!' ) ;
45
44
} ) ;
Original file line number Diff line number Diff line change @@ -178,8 +178,7 @@ test('escaping', () => {
178
178
'exports[`key`] = `"\'\\\\`;\n' ,
179
179
) ;
180
180
181
- // @ts -expect-error
182
- const exports = { } ; // eslint-disable-line @typescript-eslint/no-unused-vars
181
+ const exports = { } ;
183
182
// eslint-disable-next-line no-eval
184
183
const readData = eval ( 'var exports = {}; ' + writtenData + ' exports' ) ;
185
184
expect ( readData ) . toEqual ( { key : data } ) ;
Original file line number Diff line number Diff line change 28
28
},
29
29
"devDependencies" : {
30
30
"@tsd/typescript" : " ~4.1.5" ,
31
- "tsd-lite" : " ^0.5.0 "
31
+ "tsd-lite" : " ^0.5.1 "
32
32
},
33
33
"publishConfig" : {
34
34
"access" : " public"
Original file line number Diff line number Diff line change @@ -2803,7 +2803,7 @@ __metadata:
2803
2803
"@types/node": "*"
2804
2804
"@types/yargs": ^16.0.0
2805
2805
chalk: ^4.0.0
2806
- tsd-lite: ^0.5.0
2806
+ tsd-lite: ^0.5.1
2807
2807
languageName: unknown
2808
2808
linkType: soft
2809
2809
@@ -9883,12 +9883,14 @@ __metadata:
9883
9883
dependencies:
9884
9884
"@jest/test-utils": ^27.4.6
9885
9885
"@jest/types": ^27.4.2
9886
+ "@tsd/typescript": ~4.1.5
9886
9887
chalk: ^4.0.0
9887
9888
fast-check: ^2.0.0
9888
9889
immutable: ^4.0.0
9889
9890
jest-get-type: ^27.4.0
9890
9891
jest-matcher-utils: ^27.4.6
9891
9892
jest-message-util: ^27.4.6
9893
+ tsd-lite: ^0.5.1
9892
9894
languageName: unknown
9893
9895
linkType: soft
9894
9896
20663
20665
languageName: node
20664
20666
linkType: hard
20665
20667
20666
- "tsd-lite@npm:^0.5.0":
20667
- version: 0.5.0
20668
- resolution: "tsd-lite@npm:0.5.0 "
20668
+ "tsd-lite@npm:^0.5.0, tsd-lite@npm:^0.5.1 ":
20669
+ version: 0.5.1
20670
+ resolution: "tsd-lite@npm:0.5.1 "
20669
20671
peerDependencies:
20670
20672
"@tsd/typescript": ^3.8.3 || ^4.0.7
20671
- checksum: 6590ca24f2ac07e961ec3786a94269c26bfa93b09c3d397f5f3c3b09fedee515dbe96aa09de4c24ce3a42a3bbe47543f0a30aa06770b34b4a6eb8b61e92dce21
20673
+ checksum: 875cf890f3cc10c0974a4588568ee9e5202b047480cd261dbe1e7487fb25b56df6217b2a3e95b5cc1a88d27e0e1f13299b3048b908afe2da782369e381ad083c
20672
20674
languageName: node
20673
20675
linkType: hard
20674
20676
You can’t perform that action at this time.
0 commit comments