Skip to content

Commit c2bc3e3

Browse files
authored
Merge pull request #484 from Quramy/renovate/major-jest-monorepo
chore(deps): update jest monorepo to v29 (major)
2 parents bc4ca56 + e686725 commit c2bc3e3

File tree

4 files changed

+518
-539
lines changed

4 files changed

+518
-539
lines changed

e2e/test/__snapshots__/e2e.test.ts.snap

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`LanguageService plugin #getCodeFixes should return codeFixes reported by ESLint rules 1`] = `
4-
Object {
5-
"body": Array [
6-
Object {
7-
"changes": Array [
8-
Object {
4+
{
5+
"body": [
6+
{
7+
"changes": [
8+
{
99
"fileName": "<fileName>",
10-
"textChanges": Array [
11-
Object {
12-
"end": Object {
10+
"textChanges": [
11+
{
12+
"end": {
1313
"line": 1,
1414
"offset": 12,
1515
},
1616
"newText": ";",
17-
"start": Object {
17+
"start": {
1818
"line": 1,
1919
"offset": 12,
2020
},
@@ -36,9 +36,9 @@ Object {
3636
`;
3737

3838
exports[`LanguageService plugin #getSemanticDiagnostics should not reproduce issue #7 1`] = `
39-
Object {
40-
"body": Object {
41-
"diagnostics": Array [],
39+
{
40+
"body": {
41+
"diagnostics": [],
4242
"file": "<file>",
4343
},
4444
"event": "semanticDiag",
@@ -48,69 +48,69 @@ Object {
4848
`;
4949

5050
exports[`LanguageService plugin #getSemanticDiagnostics should not reproduce issue 217 1`] = `
51-
Object {
52-
"body": Object {
53-
"diagnostics": Array [
54-
Object {
51+
{
52+
"body": {
53+
"diagnostics": [
54+
{
5555
"category": "error",
5656
"code": 30010,
57-
"end": Object {
57+
"end": {
5858
"line": 2,
5959
"offset": 16,
6060
},
61-
"start": Object {
61+
"start": {
6262
"line": 2,
6363
"offset": 3,
6464
},
65-
"text": "[@typescript-eslint/await-thenable] Unexpected \`await\` of a non-Promise (non-\\"Thenable\\") value.",
65+
"text": "[@typescript-eslint/await-thenable] Unexpected \`await\` of a non-Promise (non-"Thenable") value.",
6666
},
67-
Object {
67+
{
6868
"category": "error",
6969
"code": 30010,
70-
"end": Object {
70+
"end": {
7171
"line": 6,
7272
"offset": 29,
7373
},
74-
"start": Object {
74+
"start": {
7575
"line": 6,
7676
"offset": 14,
7777
},
7878
"text": "[@typescript-eslint/no-implied-eval] Implied eval. Consider passing a function.",
7979
},
80-
Object {
80+
{
8181
"category": "error",
8282
"code": 30010,
83-
"end": Object {
83+
"end": {
8484
"line": 10,
8585
"offset": 17,
8686
},
87-
"start": Object {
87+
"start": {
8888
"line": 10,
8989
"offset": 15,
9090
},
9191
"text": "[@typescript-eslint/no-base-to-string] '{} will evaluate to '[object Object]' when stringified.",
9292
},
93-
Object {
93+
{
9494
"category": "error",
9595
"code": 30010,
96-
"end": Object {
96+
"end": {
9797
"line": 15,
9898
"offset": 20,
9999
},
100-
"start": Object {
100+
"start": {
101101
"line": 15,
102102
"offset": 14,
103103
},
104-
"text": "[@typescript-eslint/dot-notation] [\\"prop\\"] is better written in dot notation.",
104+
"text": "[@typescript-eslint/dot-notation] ["prop"] is better written in dot notation.",
105105
},
106-
Object {
106+
{
107107
"category": "error",
108108
"code": 30010,
109-
"end": Object {
109+
"end": {
110110
"line": 19,
111111
"offset": 37,
112112
},
113-
"start": Object {
113+
"start": {
114114
"line": 19,
115115
"offset": 15,
116116
},
@@ -126,9 +126,9 @@ Object {
126126
`;
127127

128128
exports[`LanguageService plugin #getSemanticDiagnostics should not return ESLint error when the project does not use @typescript-eslint/parser 1`] = `
129-
Object {
130-
"body": Object {
131-
"diagnostics": Array [],
129+
{
130+
"body": {
131+
"diagnostics": [],
132132
"file": "<file>",
133133
},
134134
"event": "semanticDiag",
@@ -138,17 +138,17 @@ Object {
138138
`;
139139

140140
exports[`LanguageService plugin #getSemanticDiagnostics should return ESLint error when the project is configured with ESLint plugins 1`] = `
141-
Object {
142-
"body": Object {
143-
"diagnostics": Array [
144-
Object {
141+
{
142+
"body": {
143+
"diagnostics": [
144+
{
145145
"category": "error",
146146
"code": 30010,
147-
"end": Object {
147+
"end": {
148148
"line": 2,
149149
"offset": 10,
150150
},
151-
"start": Object {
151+
"start": {
152152
"line": 2,
153153
"offset": 9,
154154
},
@@ -164,17 +164,17 @@ Object {
164164
`;
165165

166166
exports[`LanguageService plugin #getSemanticDiagnostics should return ESLint error when the project uses @typescript-eslint/parser 1`] = `
167-
Object {
168-
"body": Object {
169-
"diagnostics": Array [
170-
Object {
167+
{
168+
"body": {
169+
"diagnostics": [
170+
{
171171
"category": "error",
172172
"code": 30010,
173-
"end": Object {
173+
"end": {
174174
"line": 1,
175175
"offset": 13,
176176
},
177-
"start": Object {
177+
"start": {
178178
"line": 1,
179179
"offset": 12,
180180
},
@@ -190,17 +190,17 @@ Object {
190190
`;
191191

192192
exports[`LanguageService plugin #getSemanticDiagnostics should return ESLint error when the project uses @typescript-eslint/parser and be configured with 'eslint:recommended' 1`] = `
193-
Object {
194-
"body": Object {
195-
"diagnostics": Array [
196-
Object {
193+
{
194+
"body": {
195+
"diagnostics": [
196+
{
197197
"category": "error",
198198
"code": 30010,
199-
"end": Object {
199+
"end": {
200200
"line": 1,
201201
"offset": 10,
202202
},
203-
"start": Object {
203+
"start": {
204204
"line": 1,
205205
"offset": 1,
206206
},

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,20 @@
4242
"devDependencies": {
4343
"@types/eslint": "8.4.6",
4444
"@types/estree": "1.0.0",
45-
"@types/jest": "28.1.8",
45+
"@types/jest": "29.5.0",
4646
"@types/node": "18.15.10",
4747
"@typescript-eslint/eslint-plugin": "5.26.0",
4848
"@typescript-eslint/parser": "5.26.0",
4949
"eslint": "8.25.0",
5050
"eslint-config-prettier": "8.8.0",
5151
"fretted-strings": "1.0.1",
5252
"husky": "8.0.3",
53-
"jest": "28.1.3",
53+
"jest": "29.5.0",
5454
"pinst": "3.0.0",
5555
"prettier": "2.8.7",
5656
"pretty-quick": "3.1.3",
5757
"rimraf": "4.4.1",
58-
"ts-jest": "28.0.8",
58+
"ts-jest": "29.0.5",
5959
"typescript": "4.9.5"
6060
},
6161
"jest": {

src/__snapshots__/eslint-adapter.test.ts.snap

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`ESLintAdapter #getCodeFixesAtPosition shuld only delegate when input errorCodes does not include TS_LANGSERVICE_ESLINT_DIAGNOSTIC_ERROR_CODE 1`] = `Array []`;
3+
exports[`ESLintAdapter #getCodeFixesAtPosition shuld only delegate when input errorCodes does not include TS_LANGSERVICE_ESLINT_DIAGNOSTIC_ERROR_CODE 1`] = `[]`;
44

5-
exports[`ESLintAdapter #getCodeFixesAtPosition shuld only delegate when input range isn't intersected ESLint reported results 1`] = `Array []`;
5+
exports[`ESLintAdapter #getCodeFixesAtPosition shuld only delegate when input range isn't intersected ESLint reported results 1`] = `[]`;
66

77
exports[`ESLintAdapter #getCodeFixesAtPosition shuld return ESLint sourceCodeFixer result as TypeScript codeFixAction format 1`] = `
8-
Array [
9-
Object {
10-
"changes": Array [
11-
Object {
8+
[
9+
{
10+
"changes": [
11+
{
1212
"fileName": "main.ts",
1313
"isNewFile": false,
14-
"textChanges": Array [
15-
Object {
16-
"newText": "\\"use strict\\"",
17-
"span": Object {
14+
"textChanges": [
15+
{
16+
"newText": ""use strict"",
17+
"span": {
1818
"length": 12,
1919
"start": 11,
2020
},
@@ -30,8 +30,8 @@ Array [
3030
`;
3131

3232
exports[`ESLintAdapter #getSemanticDiagnostics shuld return ESLint verification result as TypeScript diagnostic format 1`] = `
33-
Array [
34-
Object {
33+
[
34+
{
3535
"category": 1,
3636
"code": 30010,
3737
"length": 0,

0 commit comments

Comments
 (0)