Skip to content

Commit a0895a4

Browse files
committed
test(tasks/coverage/typescript): collect more error files
1 parent 4ebab5f commit a0895a4

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 : 9820/9820 (100.00%)
5-
Positive Passed: 9820/9820 (100.00%)
4+
AST Parsed : 9817/9817 (100.00%)
5+
Positive Passed: 9817/9817 (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 : 9749/9749 (100.00%)
5-
Positive Passed: 9741/9749 (99.92%)
4+
AST Parsed : 9748/9748 (100.00%)
5+
Positive Passed: 9740/9748 (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 : 9820/9820 (100.00%)
5-
Positive Passed: 9808/9820 (99.88%)
4+
AST Parsed : 9817/9817 (100.00%)
5+
Positive Passed: 9807/9817 (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 : 9818/9820 (99.98%)
5-
Positive Passed: 9806/9820 (99.86%)
6-
Negative Passed: 1452/2537 (57.23%)
4+
AST Parsed : 9816/9817 (99.99%)
5+
Positive Passed: 9806/9817 (99.89%)
6+
Negative Passed: 1455/2540 (57.28%)
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
@@ -2194,24 +2194,6 @@ Expect to Parse: tasks/coverage/typescript/tests/cases/compiler/sourceMapValidat
21942194
19 │ }
21952195
╰────
21962196

2197-
Expect to Parse: tasks/coverage/typescript/tests/cases/compiler/unreachableDeclarations.ts
2198-
2199-
× A namespace declaration is only allowed at the top level of a namespace or module.
2200-
╭─[typescript/tests/cases/compiler/unreachableDeclarations.ts:84:2]
2201-
83 │
2202-
84 │ namespace Baz { export const value = 1234 }
2203-
· ───────────────────────────────────────────
2204-
85 │ }
2205-
╰────
2206-
2207-
× A namespace declaration is only allowed at the top level of a namespace or module.
2208-
╭─[typescript/tests/cases/compiler/unreachableDeclarations.ts:84:2]
2209-
83 │
2210-
84 │ namespace Baz { export const value = 1234 }
2211-
· ───────────────────────────────────────────
2212-
85 │ }
2213-
╰────
2214-
22152197
Expect to Parse: tasks/coverage/typescript/tests/cases/compiler/withStatementInternalComments.ts
22162198

22172199
× 'with' statements are not allowed
@@ -2235,56 +2217,6 @@ Expect to Parse: tasks/coverage/typescript/tests/cases/conformance/async/es6/asy
22352217
132 │ }
22362218
╰────
22372219

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

22902222
× Cannot assign to 'arguments' in strict mode
@@ -2294,16 +2226,6 @@ Expect to Parse: tasks/coverage/typescript/tests/cases/conformance/dynamicImport
22942226
· ─────────
22952227
╰────
22962228

2297-
Expect to Parse: tasks/coverage/typescript/tests/cases/conformance/es2019/importMeta/importMeta.ts
2298-
2299-
× The only valid meta property for import is import.meta
2300-
╭─[typescript/tests/cases/conformance/es2019/importMeta/importMeta.ts:2:16]
2301-
1 │ export let x = import.meta;
2302-
2 │ export let y = import.metal;
2303-
· ────────────
2304-
3 │ export let z = import.import.import.malkovich;
2305-
╰────
2306-
23072229
Expect to Parse: tasks/coverage/typescript/tests/cases/conformance/es6/moduleExportsSystem/topLevelVarHoistingCommonJS.ts
23082230

23092231
× 'with' statements are not allowed
@@ -12078,6 +12000,22 @@ Expect to Parse: tasks/coverage/typescript/tests/cases/conformance/statements/Va
1207812000
2 │ type U2 = string | (foo: number) => void
1207912001
╰────
1208012002

12003+
× A namespace declaration is only allowed at the top level of a namespace or module.
12004+
╭─[typescript/tests/cases/compiler/unreachableDeclarations.ts:84:2]
12005+
83 │
12006+
84 │ namespace Baz { export const value = 1234 }
12007+
· ───────────────────────────────────────────
12008+
85 │ }
12009+
╰────
12010+
12011+
× A namespace declaration is only allowed at the top level of a namespace or module.
12012+
╭─[typescript/tests/cases/compiler/unreachableDeclarations.ts:84:2]
12013+
83 │
12014+
84 │ namespace Baz { export const value = 1234 }
12015+
· ───────────────────────────────────────────
12016+
85 │ }
12017+
╰────
12018+
1208112019
× Unterminated regular expression
1208212020
╭─[typescript/tests/cases/compiler/unterminatedRegexAtEndOfSource1.ts:1:9]
1208312021
1 │ var a = /
@@ -14786,6 +14724,54 @@ Expect to Parse: tasks/coverage/typescript/tests/cases/conformance/statements/Va
1478614724
4 │ }
1478714725
╰────
1478814726

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

15184+
× The only valid meta property for import is import.meta
15185+
╭─[typescript/tests/cases/conformance/es2019/importMeta/importMeta.ts:2:16]
15186+
1 │ export let x = import.meta;
15187+
2 │ export let y = import.metal;
15188+
· ────────────
15189+
3 │ export let z = import.import.import.malkovich;
15190+
╰────
15191+
1519815192
× Identifier expected.
1519915193
╭─[typescript/tests/cases/conformance/es2022/arbitraryModuleNamespaceIdentifiers/arbitraryModuleNamespaceIdentifiers_syntax.ts:1:17]
1520015194
1 │ import { foo as "invalid 2" } from "./values-valid";

0 commit comments

Comments
 (0)