Skip to content

Commit c8c7da7

Browse files
committed
test(tasks/coverage/typescript): collect more error files
1 parent f9d94b6 commit c8c7da7

File tree

9 files changed

+133
-491
lines changed

9 files changed

+133
-491
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tasks/coverage/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ cow-utils = { workspace = true }
3333
encoding_rs = { workspace = true }
3434
encoding_rs_io = { workspace = true }
3535
futures = { workspace = true }
36+
itertools = { workspace = true }
3637
lazy-regex = { workspace = true }
3738
phf = { workspace = true }
3839
pico-args = { workspace = true }
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
commit: 8ea03f88
22

33
codegen_typescript Summary:
4-
AST Parsed : 9815/9815 (100.00%)
5-
Positive Passed: 9815/9815 (100.00%)
4+
AST Parsed : 9812/9812 (100.00%)
5+
Positive Passed: 9812/9812 (100.00%)

tasks/coverage/snapshots/estree_typescript.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
commit: 8ea03f88
22

33
estree_typescript Summary:
4-
AST Parsed : 9744/9744 (100.00%)
5-
Positive Passed: 9736/9744 (99.92%)
4+
AST Parsed : 9743/9743 (100.00%)
5+
Positive Passed: 9735/9743 (99.92%)
66
Mismatch: tasks/coverage/typescript/tests/cases/compiler/declarationEmitModuleWithScopeMarker.ts
77

88
Mismatch: tasks/coverage/typescript/tests/cases/conformance/importDefer/importDeferComments.ts

tasks/coverage/snapshots/formatter_typescript.snap

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
commit: 8ea03f88
22

33
formatter_typescript Summary:
4-
AST Parsed : 9815/9815 (100.00%)
5-
Positive Passed: 9803/9815 (99.88%)
4+
AST Parsed : 9812/9812 (100.00%)
5+
Positive Passed: 9802/9812 (99.90%)
66
Mismatch: tasks/coverage/typescript/tests/cases/compiler/amdLikeInputDeclarationEmit.ts
77

88
Expect to Parse: tasks/coverage/typescript/tests/cases/compiler/genericTypeAssertions3.ts
@@ -11,10 +11,6 @@ Expect to Parse: tasks/coverage/typescript/tests/cases/compiler/sourceMapValidat
1111
Unexpected token
1212
Expect to Parse: tasks/coverage/typescript/tests/cases/compiler/typeAssertionToGenericFunctionType.ts
1313
Unexpected token
14-
Expect to Parse: tasks/coverage/typescript/tests/cases/conformance/classes/propertyMemberDeclarations/staticPropertyNameConflicts.ts
15-
Classes may not have a static property named 'prototype'Classes may not have a static property named 'prototype'Classes may not have a static property named 'prototype'Classes may not have a static property named 'prototype'Classes may not have a static property named 'prototype'Classes may not have a static property named 'prototype'
16-
Expect to Parse: tasks/coverage/typescript/tests/cases/conformance/es2019/importMeta/importMeta.ts
17-
The only valid meta property for import is import.meta
1814
Mismatch: tasks/coverage/typescript/tests/cases/conformance/expressions/contextualTyping/parenthesizedContexualTyping2.ts
1915

2016
Expect to Parse: tasks/coverage/typescript/tests/cases/conformance/expressions/elementAccess/letIdentifierInElementAccess01.ts

tasks/coverage/snapshots/parser_typescript.snap

Lines changed: 75 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
commit: 8ea03f88
22

33
parser_typescript Summary:
4-
AST Parsed : 9813/9815 (99.98%)
5-
Positive Passed: 9801/9815 (99.86%)
6-
Negative Passed: 1452/2542 (57.12%)
4+
AST Parsed : 9811/9812 (99.99%)
5+
Positive Passed: 9801/9812 (99.89%)
6+
Negative Passed: 1455/2545 (57.17%)
77
Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/ExportAssignment7.ts
88

99
Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/ExportAssignment8.ts
@@ -2204,24 +2204,6 @@ Expect to Parse: tasks/coverage/typescript/tests/cases/compiler/sourceMapValidat
22042204
19 │ }
22052205
╰────
22062206

2207-
Expect to Parse: tasks/coverage/typescript/tests/cases/compiler/unreachableDeclarations.ts
2208-
2209-
× A namespace declaration is only allowed at the top level of a namespace or module.
2210-
╭─[typescript/tests/cases/compiler/unreachableDeclarations.ts:84:2]
2211-
83 │
2212-
84 │ namespace Baz { export const value = 1234 }
2213-
· ───────────────────────────────────────────
2214-
85 │ }
2215-
╰────
2216-
2217-
× A namespace declaration is only allowed at the top level of a namespace or module.
2218-
╭─[typescript/tests/cases/compiler/unreachableDeclarations.ts:84:2]
2219-
83 │
2220-
84 │ namespace Baz { export const value = 1234 }
2221-
· ───────────────────────────────────────────
2222-
85 │ }
2223-
╰────
2224-
22252207
Expect to Parse: tasks/coverage/typescript/tests/cases/compiler/withStatementInternalComments.ts
22262208

22272209
× 'with' statements are not allowed
@@ -2245,56 +2227,6 @@ Expect to Parse: tasks/coverage/typescript/tests/cases/conformance/async/es6/asy
22452227
132 │ }
22462228
╰────
22472229

2248-
Expect to Parse: tasks/coverage/typescript/tests/cases/conformance/classes/propertyMemberDeclarations/staticPropertyNameConflicts.ts
2249-
2250-
× Classes may not have a static property named 'prototype'
2251-
╭─[typescript/tests/cases/conformance/classes/propertyMemberDeclarations/staticPropertyNameConflicts.ts:53:12]
2252-
52 │ class StaticPrototype {
2253-
53 │ static prototype: number; // always an error
2254-
· ─────────
2255-
54 │ prototype: string; // ok
2256-
╰────
2257-
2258-
× Classes may not have a static property named 'prototype'
2259-
╭─[typescript/tests/cases/conformance/classes/propertyMemberDeclarations/staticPropertyNameConflicts.ts:63:12]
2260-
62 │ class StaticPrototypeFn {
2261-
63 │ static prototype() {} // always an error
2262-
· ─────────
2263-
64 │ prototype() {} // ok
2264-
╰────
2265-
2266-
× Classes may not have a static property named 'prototype'
2267-
╭─[typescript/tests/cases/conformance/classes/propertyMemberDeclarations/staticPropertyNameConflicts.ts:161:12]
2268-
160 │ var StaticPrototype_Anonymous = class {
2269-
161 │ static prototype: number; // always an error
2270-
· ─────────
2271-
162 │ prototype: string; // ok
2272-
╰────
2273-
2274-
× Classes may not have a static property named 'prototype'
2275-
╭─[typescript/tests/cases/conformance/classes/propertyMemberDeclarations/staticPropertyNameConflicts.ts:171:12]
2276-
170 │ var StaticPrototypeFn_Anonymous = class {
2277-
171 │ static prototype() {} // always an error
2278-
· ─────────
2279-
172 │ prototype() {} // ok
2280-
╰────
2281-
2282-
× Classes may not have a static property named 'prototype'
2283-
╭─[typescript/tests/cases/conformance/classes/propertyMemberDeclarations/staticPropertyNameConflicts.ts:278:16]
2284-
277 │ export default class StaticPrototype {
2285-
278 │ static prototype: number; // always an error
2286-
· ─────────
2287-
279 │ prototype: string; // ok
2288-
╰────
2289-
2290-
× Classes may not have a static property named 'prototype'
2291-
╭─[typescript/tests/cases/conformance/classes/propertyMemberDeclarations/staticPropertyNameConflicts.ts:290:16]
2292-
289 │ export default class StaticPrototypeFn {
2293-
290 │ static prototype() {} // always an error
2294-
· ─────────
2295-
291 │ prototype() {} // ok
2296-
╰────
2297-
22982230
Expect to Parse: tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpressionInScriptContext1.ts
22992231

23002232
× Cannot assign to 'arguments' in strict mode
@@ -2304,16 +2236,6 @@ Expect to Parse: tasks/coverage/typescript/tests/cases/conformance/dynamicImport
23042236
· ─────────
23052237
╰────
23062238

2307-
Expect to Parse: tasks/coverage/typescript/tests/cases/conformance/es2019/importMeta/importMeta.ts
2308-
2309-
× The only valid meta property for import is import.meta
2310-
╭─[typescript/tests/cases/conformance/es2019/importMeta/importMeta.ts:2:16]
2311-
1 │ export let x = import.meta;
2312-
2 │ export let y = import.metal;
2313-
· ────────────
2314-
3 │ export let z = import.import.import.malkovich;
2315-
╰────
2316-
23172239
Expect to Parse: tasks/coverage/typescript/tests/cases/conformance/es6/moduleExportsSystem/topLevelVarHoistingCommonJS.ts
23182240

23192241
× 'with' statements are not allowed
@@ -12088,6 +12010,22 @@ Expect to Parse: tasks/coverage/typescript/tests/cases/conformance/statements/Va
1208812010
2 │ type U2 = string | (foo: number) => void
1208912011
╰────
1209012012

12013+
× A namespace declaration is only allowed at the top level of a namespace or module.
12014+
╭─[typescript/tests/cases/compiler/unreachableDeclarations.ts:84:2]
12015+
83 │
12016+
84 │ namespace Baz { export const value = 1234 }
12017+
· ───────────────────────────────────────────
12018+
85 │ }
12019+
╰────
12020+
12021+
× A namespace declaration is only allowed at the top level of a namespace or module.
12022+
╭─[typescript/tests/cases/compiler/unreachableDeclarations.ts:84:2]
12023+
83 │
12024+
84 │ namespace Baz { export const value = 1234 }
12025+
· ───────────────────────────────────────────
12026+
85 │ }
12027+
╰────
12028+
1209112029
× Unterminated regular expression
1209212030
╭─[typescript/tests/cases/compiler/unterminatedRegexAtEndOfSource1.ts:1:9]
1209312031
1 │ var a = /
@@ -14796,6 +14734,54 @@ Expect to Parse: tasks/coverage/typescript/tests/cases/conformance/statements/Va
1479614734
4 │ }
1479714735
╰────
1479814736

14737+
× Classes may not have a static property named 'prototype'
14738+
╭─[typescript/tests/cases/conformance/classes/propertyMemberDeclarations/staticPropertyNameConflicts.ts:53:12]
14739+
52 │ class StaticPrototype {
14740+
53 │ static prototype: number; // always an error
14741+
· ─────────
14742+
54 │ prototype: string; // ok
14743+
╰────
14744+
14745+
× Classes may not have a static property named 'prototype'
14746+
╭─[typescript/tests/cases/conformance/classes/propertyMemberDeclarations/staticPropertyNameConflicts.ts:63:12]
14747+
62 │ class StaticPrototypeFn {
14748+
63 │ static prototype() {} // always an error
14749+
· ─────────
14750+
64 │ prototype() {} // ok
14751+
╰────
14752+
14753+
× Classes may not have a static property named 'prototype'
14754+
╭─[typescript/tests/cases/conformance/classes/propertyMemberDeclarations/staticPropertyNameConflicts.ts:161:12]
14755+
160 │ var StaticPrototype_Anonymous = class {
14756+
161 │ static prototype: number; // always an error
14757+
· ─────────
14758+
162 │ prototype: string; // ok
14759+
╰────
14760+
14761+
× Classes may not have a static property named 'prototype'
14762+
╭─[typescript/tests/cases/conformance/classes/propertyMemberDeclarations/staticPropertyNameConflicts.ts:171:12]
14763+
170 │ var StaticPrototypeFn_Anonymous = class {
14764+
171 │ static prototype() {} // always an error
14765+
· ─────────
14766+
172 │ prototype() {} // ok
14767+
╰────
14768+
14769+
× Classes may not have a static property named 'prototype'
14770+
╭─[typescript/tests/cases/conformance/classes/propertyMemberDeclarations/staticPropertyNameConflicts.ts:278:16]
14771+
277 │ export default class StaticPrototype {
14772+
278 │ static prototype: number; // always an error
14773+
· ─────────
14774+
279 │ prototype: string; // ok
14775+
╰────
14776+
14777+
× Classes may not have a static property named 'prototype'
14778+
╭─[typescript/tests/cases/conformance/classes/propertyMemberDeclarations/staticPropertyNameConflicts.ts:290:16]
14779+
289 │ export default class StaticPrototypeFn {
14780+
290 │ static prototype() {} // always an error
14781+
· ─────────
14782+
291 │ prototype() {} // ok
14783+
╰────
14784+
1479914785
× Identifier `x` has already been declared
1480014786
╭─[typescript/tests/cases/conformance/classes/propertyMemberDeclarations/twoAccessorsWithSameName.ts:2:9]
1480114787
1 │ class C {
@@ -15205,6 +15191,14 @@ Expect to Parse: tasks/coverage/typescript/tests/cases/conformance/statements/Va
1520515191
9 │ const z = tag`\u{hello} \xtraordinary wonderful \uworld` // should work with Tagged NoSubstitutionTemplate
1520615192
╰────
1520715193

15194+
× The only valid meta property for import is import.meta
15195+
╭─[typescript/tests/cases/conformance/es2019/importMeta/importMeta.ts:2:16]
15196+
1 │ export let x = import.meta;
15197+
2 │ export let y = import.metal;
15198+
· ────────────
15199+
3 │ export let z = import.import.import.malkovich;
15200+
╰────
15201+
1520815202
× Identifier expected.
1520915203
╭─[typescript/tests/cases/conformance/es2022/arbitraryModuleNamespaceIdentifiers/arbitraryModuleNamespaceIdentifiers_syntax.ts:1:17]
1521015204
1 │ import { foo as "invalid 2" } from "./values-valid";

0 commit comments

Comments
 (0)