Skip to content

Commit d19ae1d

Browse files
author
Amey Mandalik
committed
tests
1 parent 4d9bd77 commit d19ae1d

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

packages/parser-javascript/test/__snapshots__/error-recovery.test.ts.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ exports[`error recovery metrics > summary 1`] = `
124124
},
125125
{
126126
"crashed": false,
127-
"cstCoverage": 0.37,
127+
"cstCoverage": 1,
128128
"id": "3b-missing-colon-field",
129129
"parser": "parser-ts",
130130
},
@@ -148,7 +148,7 @@ exports[`error recovery metrics > summary 1`] = `
148148
},
149149
{
150150
"crashed": false,
151-
"cstCoverage": 0.69,
151+
"cstCoverage": 1,
152152
"id": "3d-missing-to",
153153
"parser": "parser-ts",
154154
},
@@ -184,7 +184,7 @@ exports[`error recovery metrics > summary 1`] = `
184184
},
185185
{
186186
"crashed": false,
187-
"cstCoverage": 0.64,
187+
"cstCoverage": 0.82,
188188
"id": "4a-misspelled-modifier",
189189
"parser": "parser-ts",
190190
},
@@ -208,7 +208,7 @@ exports[`error recovery metrics > summary 1`] = `
208208
},
209209
{
210210
"crashed": false,
211-
"cstCoverage": 0.79,
211+
"cstCoverage": 0.96,
212212
"id": "4c-wrong-conditional",
213213
"parser": "parser-ts",
214214
},
Binary file not shown.

packages/parser-javascript/test/__snapshots__/parity.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,9 @@ exports[`parser parity: tree-sitter vs parser-js > error_recovery.txt > Error 21
178178

179179
exports[`parser parity: tree-sitter vs parser-js > error_recovery.txt > Error 22: Trailing comma should be valid syntax 1`] = `
180180
{
181-
"match": true,
181+
"match": false,
182182
"parserTs": "(source_file (mapping (mapping_element key: (key (id)) colinear_value: (expression_with_to expression: (expression (call_expression function: (expression (atom (id))) argument: (expression (atom (id))) argument: (expression (atom (id))) argument: (expression (atom (MISSING id))))))) (mapping_element key: (key (id)) colinear_value: (expression_with_to expression: (expression (atom (string (string_content))))))))",
183-
"treeSitter": "(source_file (mapping (mapping_element key: (key (id)) colinear_value: (expression_with_to expression: (expression (call_expression function: (expression (atom (id))) argument: (expression (atom (id))) argument: (expression (atom (id))) argument: (expression (atom (MISSING id))))))) (mapping_element key: (key (id)) colinear_value: (expression_with_to expression: (expression (atom (string (string_content))))))))",
183+
"treeSitter": "(ERROR (key (id)) (expression (atom (id))) (expression (atom (id))) argument: (expression (atom (id))) (ERROR (expression (atom (id)))) (expression (atom (string (string_content)))))",
184184
}
185185
`;
186186

0 commit comments

Comments
 (0)