You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: e2e/test/__snapshots__/e2e.test.ts.snap
+53-53Lines changed: 53 additions & 53 deletions
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,20 @@
1
1
// Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
3
3
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
+
{
9
9
"fileName": "<fileName>",
10
-
"textChanges": Array[
11
-
Object{
12
-
"end": Object{
10
+
"textChanges": [
11
+
{
12
+
"end": {
13
13
"line": 1,
14
14
"offset": 12,
15
15
},
16
16
"newText": ";",
17
-
"start": Object{
17
+
"start": {
18
18
"line": 1,
19
19
"offset": 12,
20
20
},
@@ -36,9 +36,9 @@ Object {
36
36
`;
37
37
38
38
exports[`LanguageService plugin #getSemanticDiagnostics should not reproduce issue #7 1`] =`
39
-
Object {
40
-
"body": Object{
41
-
"diagnostics": Array[],
39
+
{
40
+
"body": {
41
+
"diagnostics": [],
42
42
"file": "<file>",
43
43
},
44
44
"event": "semanticDiag",
@@ -48,69 +48,69 @@ Object {
48
48
`;
49
49
50
50
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
+
{
55
55
"category": "error",
56
56
"code": 30010,
57
-
"end": Object{
57
+
"end": {
58
58
"line": 2,
59
59
"offset": 16,
60
60
},
61
-
"start": Object{
61
+
"start": {
62
62
"line": 2,
63
63
"offset": 3,
64
64
},
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.",
66
66
},
67
-
Object{
67
+
{
68
68
"category": "error",
69
69
"code": 30010,
70
-
"end": Object{
70
+
"end": {
71
71
"line": 6,
72
72
"offset": 29,
73
73
},
74
-
"start": Object{
74
+
"start": {
75
75
"line": 6,
76
76
"offset": 14,
77
77
},
78
78
"text": "[@typescript-eslint/no-implied-eval] Implied eval. Consider passing a function.",
79
79
},
80
-
Object{
80
+
{
81
81
"category": "error",
82
82
"code": 30010,
83
-
"end": Object{
83
+
"end": {
84
84
"line": 10,
85
85
"offset": 17,
86
86
},
87
-
"start": Object{
87
+
"start": {
88
88
"line": 10,
89
89
"offset": 15,
90
90
},
91
91
"text": "[@typescript-eslint/no-base-to-string] '{} will evaluate to '[object Object]' when stringified.",
92
92
},
93
-
Object{
93
+
{
94
94
"category": "error",
95
95
"code": 30010,
96
-
"end": Object{
96
+
"end": {
97
97
"line": 15,
98
98
"offset": 20,
99
99
},
100
-
"start": Object{
100
+
"start": {
101
101
"line": 15,
102
102
"offset": 14,
103
103
},
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.",
105
105
},
106
-
Object{
106
+
{
107
107
"category": "error",
108
108
"code": 30010,
109
-
"end": Object{
109
+
"end": {
110
110
"line": 19,
111
111
"offset": 37,
112
112
},
113
-
"start": Object{
113
+
"start": {
114
114
"line": 19,
115
115
"offset": 15,
116
116
},
@@ -126,9 +126,9 @@ Object {
126
126
`;
127
127
128
128
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": [],
132
132
"file": "<file>",
133
133
},
134
134
"event": "semanticDiag",
@@ -138,17 +138,17 @@ Object {
138
138
`;
139
139
140
140
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
+
{
145
145
"category": "error",
146
146
"code": 30010,
147
-
"end": Object{
147
+
"end": {
148
148
"line": 2,
149
149
"offset": 10,
150
150
},
151
-
"start": Object{
151
+
"start": {
152
152
"line": 2,
153
153
"offset": 9,
154
154
},
@@ -164,17 +164,17 @@ Object {
164
164
`;
165
165
166
166
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
+
{
171
171
"category": "error",
172
172
"code": 30010,
173
-
"end": Object{
173
+
"end": {
174
174
"line": 1,
175
175
"offset": 13,
176
176
},
177
-
"start": Object{
177
+
"start": {
178
178
"line": 1,
179
179
"offset": 12,
180
180
},
@@ -190,17 +190,17 @@ Object {
190
190
`;
191
191
192
192
exports[`LanguageService plugin #getSemanticDiagnostics should return ESLint error when the project uses @typescript-eslint/parser and be configured with 'eslint:recommended' 1`] =`
Copy file name to clipboardExpand all lines: src/__snapshots__/eslint-adapter.test.ts.snap
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,20 @@
1
1
// Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
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`] =`[]`;
4
4
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`] =`[]`;
6
6
7
7
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
+
{
12
12
"fileName": "main.ts",
13
13
"isNewFile": false,
14
-
"textChanges": Array[
15
-
Object{
16
-
"newText": "\\"usestrict\\"",
17
-
"span": Object{
14
+
"textChanges": [
15
+
{
16
+
"newText": ""usestrict"",
17
+
"span": {
18
18
"length": 12,
19
19
"start": 11,
20
20
},
@@ -30,8 +30,8 @@ Array [
30
30
`;
31
31
32
32
exports[`ESLintAdapter #getSemanticDiagnostics shuld return ESLint verification result as TypeScript diagnostic format 1`] =`
0 commit comments