Skip to content

Commit

Permalink
feat(coverage): second transformer build does not print typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunqing committed Jun 6, 2024
1 parent 900bc42 commit 4ceed56
Show file tree
Hide file tree
Showing 5 changed files with 8,569 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tasks/coverage/src/transformer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ fn get_result(
let source_text2 = Codegen::<false>::new(
&filename,
&source_text1,
CodegenOptions::default().with_typescript(true),
CodegenOptions::default(),
None,
)
.build(&program)
Expand Down
99 changes: 98 additions & 1 deletion tasks/coverage/transformer_babel.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,101 @@ commit: 4bd1b2c2

transformer_babel Summary:
AST Parsed : 2099/2099 (100.00%)
Positive Passed: 2099/2099 (100.00%)
Positive Passed: 2002/2099 (95.38%)
Mismatch: "comments/basic/class-accessor-computed/input.js"
Mismatch: "comments/basic/class-method/input.js"
Mismatch: "comments/basic/class-method-async-generator/input.js"
Mismatch: "comments/basic/class-method-static-generator/input.js"
Mismatch: "comments/basic/class-private-method/input.js"
Mismatch: "comments/basic/export-default-anonymous-class/input.js"
Mismatch: "comments/regression/11469/input.js"
Mismatch: "es2015/class-methods/linebreaks/input.js"
Mismatch: "es2015/class-methods/tricky-names/input.js"
Mismatch: "es2015/uncategorised/113/input.js"
Mismatch: "es2015/uncategorised/114/input.js"
Mismatch: "es2015/uncategorised/115/input.js"
Mismatch: "es2015/uncategorised/116/input.js"
Mismatch: "es2015/uncategorised/117/input.js"
Mismatch: "es2015/uncategorised/118/input.js"
Mismatch: "es2015/uncategorised/119/input.js"
Mismatch: "es2015/uncategorised/120/input.js"
Mismatch: "es2015/uncategorised/121/input.js"
Mismatch: "es2015/uncategorised/122/input.js"
Mismatch: "es2015/uncategorised/124/input.js"
Mismatch: "es2015/uncategorised/128/input.js"
Mismatch: "es2015/uncategorised/129/input.js"
Mismatch: "es2015/uncategorised/131/input.js"
Mismatch: "es2015/uncategorised/132/input.js"
Mismatch: "es2015/uncategorised/133/input.js"
Mismatch: "es2015/uncategorised/134/input.js"
Mismatch: "es2015/uncategorised/135/input.js"
Mismatch: "es2015/uncategorised/136/input.js"
Mismatch: "es2015/uncategorised/137/input.js"
Mismatch: "es2015/uncategorised/138/input.js"
Mismatch: "es2015/uncategorised/139/input.js"
Mismatch: "es2015/uncategorised/150/input.js"
Mismatch: "es2015/uncategorised/157/input.js"
Mismatch: "es2015/uncategorised/314/input.js"
Mismatch: "es2015/uncategorised/316/input.js"
Mismatch: "es2015/yield/accessor-name-inst-computed-yield-expr/input.js"
Mismatch: "es2015/yield/function-name-class-wrapped/input.js"
Mismatch: "es2015/yield/function-name-function-method/input.js"
Mismatch: "es2015/yield/function-name-generator-method/input.js"
Mismatch: "es2017/async-functions/16/input.js"
Mismatch: "es2017/async-functions/22/input.js"
Mismatch: "es2017/async-functions/await-inside-class-methods/input.js"
Mismatch: "es2017/async-functions/await-inside-computed-class-property/input.js"
Mismatch: "es2017/async-functions/no-method-asi/input.js"
Mismatch: "es2017/trailing-function-commas/3/input.js"
Mismatch: "es2018/async-generators/class-method/input.js"
Mismatch: "es2018/async-generators/class-method-2/input.js"
Mismatch: "es2018/async-generators/class-method-no-asi/input.js"
Mismatch: "es2020/optional-chaining/super-method-class/input.js"
Mismatch: "esprima/es2015-class/migrated_0004/input.js"
Mismatch: "esprima/es2015-class/migrated_0005/input.js"
Mismatch: "esprima/es2015-class/migrated_0006/input.js"
Mismatch: "esprima/es2015-class/migrated_0007/input.js"
Mismatch: "esprima/es2015-class/migrated_0008/input.js"
Mismatch: "esprima/es2015-class/migrated_0009/input.js"
Mismatch: "esprima/es2015-class/migrated_0010/input.js"
Mismatch: "esprima/es2015-class/migrated_0011/input.js"
Mismatch: "esprima/es2015-class/migrated_0012/input.js"
Mismatch: "esprima/es2015-class/migrated_0013/input.js"
Mismatch: "esprima/es2015-class/migrated_0014/input.js"
Mismatch: "esprima/es2015-class/migrated_0015/input.js"
Mismatch: "esprima/es2015-class/migrated_0017/input.js"
Mismatch: "esprima/es2015-class/migrated_0018/input.js"
Mismatch: "esprima/es2015-class/migrated_0019/input.js"
Mismatch: "esprima/es2015-class/migrated_0020/input.js"
Mismatch: "esprima/es2015-class/migrated_0021/input.js"
Mismatch: "esprima/es2015-generator/static-generator-method/input.js"
Mismatch: "esprima/es2015-generator/static-generator-method-with-computed-name/input.js"
Mismatch: "esprima/es2015-super-property/arrow_super/input.js"
Mismatch: "esprima/es2015-super-property/constructor_super/input.js"
Mismatch: "esprima/es2015-super-property/new_super/input.js"
Mismatch: "esprima/es2015-super-property/super_computed/input.js"
Mismatch: "esprima/es2015-super-property/super_member/input.js"
Mismatch: "esprima/es2015-yield/yield-super-property/input.js"
Mismatch: "typescript/assert-predicate/asserts-this/input.ts"
Mismatch: "typescript/assert-predicate/asserts-this-with-predicate/input.ts"
Mismatch: "typescript/assert-predicate/asserts-var-with-predicate/input.ts"
Mismatch: "typescript/class/constructor/input.ts"
Mismatch: "typescript/class/constructor-with-modifier-names/input.ts"
Mismatch: "typescript/class/constructor-with-override-modifer-names/input.ts"
Mismatch: "typescript/class/method-generic/input.ts"
Mismatch: "typescript/class/method-generic-babel-7/input.ts"
Mismatch: "typescript/class/method-modifier-name-with-type-parameters/input.ts"
Mismatch: "typescript/class/method-modifier-name-with-type-parameters-babel-7/input.ts"
Mismatch: "typescript/class/method-optional/input.ts"
Mismatch: "typescript/class/method-return-type/input.ts"
Mismatch: "typescript/class/method-with-modifiers-asi/input.ts"
Mismatch: "typescript/class/method-with-newline-with-body/input.ts"
Mismatch: "typescript/class/modifiers-accessors/input.ts"
Mismatch: "typescript/class/modifiers-methods-async/input.ts"
Mismatch: "typescript/class/modifiers-override/input.ts"
Mismatch: "typescript/class/parameter-properties/input.ts"
Mismatch: "typescript/class/predicate-types/input.ts"
Mismatch: "typescript/class/private-method-overload/input.ts"
Mismatch: "typescript/export/as-namespace/input.ts"
Mismatch: "typescript/export/equals/input.ts"
Mismatch: "typescript/export/equals-in-unambiguous/input.ts"
4 changes: 3 additions & 1 deletion tasks/coverage/transformer_misc.snap
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
transformer_misc Summary:
AST Parsed : 18/18 (100.00%)
Positive Passed: 18/18 (100.00%)
Positive Passed: 16/18 (88.89%)
Mismatch: "pass/oxc-3262.js"
Mismatch: "pass/swc-8253.js"
Loading

0 comments on commit 4ceed56

Please sign in to comment.