Skip to content

Commit

Permalink
chore(transform_conformance): enable typescript plugin snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Apr 11, 2024
1 parent 3419306 commit f3a28c6
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 6 deletions.
4 changes: 2 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ lint:
# Run all the conformance tests. See `tasks/coverage`, `tasks/transform_conformance`, `tasks/minsize`
coverage:
cargo coverage
cargo run --release -p oxc_transform_conformance -- --exec
cargo run --release -p oxc_prettier_conformance
cargo run -p oxc_transform_conformance -- --exec
cargo run -p oxc_prettier_conformance
# cargo minsize

# Get code coverage
Expand Down
107 changes: 106 additions & 1 deletion tasks/transform_conformance/babel.snap.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,114 @@
Passed: 15/16
Passed: 70/174

# All Passed:



# babel-plugin-transform-typescript (55/158)
* class/abstract-class-decorated/input.ts
* class/abstract-class-decorated-method/input.ts
* class/abstract-class-decorated-parameter/input.ts
* class/accessor-allowDeclareFields-false/input.ts
* class/accessor-allowDeclareFields-true/input.ts
* class/declare/input.ts
* class/decorated-declare-properties/input.ts
* class/parameter-properties/input.ts
* class/parameter-properties-late-super/input.ts
* class/parameter-properties-with-class/input.ts
* class/parameter-properties-with-class-and-super/input.ts
* class/parameter-properties-with-parameters/input.ts
* class/parameter-properties-with-super/input.ts
* class/private-method-override-transform-private/input.ts
* class/transform-properties-declare-wrong-order/input.ts
* declarations/erased/input.ts
* declarations/export-declare-enum/input.ts
* declarations/nested-namespace/input.mjs
* exports/declared-types/input.ts
* exports/export-const-enums/input.ts
* exports/export-type/input.ts
* exports/export-type-from/input.ts
* exports/export-type-star-from/input.ts
* exports/export=/input.ts
* exports/export=-to-cjs/input.ts
* exports/imported-types/input.ts
* exports/imported-types-only-remove-type-imports/input.ts
* exports/issue-9916-3/input.ts
* exports/type-only-export-specifier-1/input.ts
* exports/type-only-export-specifier-2/input.ts
* exports/type-only-export-specifier-3/input.ts
* function/overloads-exports/input.mjs
* imports/elide-injected/input.ts
* imports/elide-preact/input.ts
* imports/elide-react/input.ts
* imports/elide-type-referenced-in-imports-equal-no/input.ts
* imports/elide-typeof/input.ts
* imports/elision/input.ts
* imports/elision-export-type/input.ts
* imports/elision-locations/input.ts
* imports/elision-qualifiedname/input.ts
* imports/elision-rename/input.ts
* imports/enum-id/input.ts
* imports/enum-value/input.ts
* imports/import-removed-exceptions/input.ts
* imports/import-type/input.ts
* imports/import-type-func-with-duplicate-name/input.ts
* imports/import-type-not-removed/input.ts
* imports/import=-declaration/input.ts
* imports/import=-module/input.ts
* imports/import=-module-to-cjs/input.ts
* imports/only-remove-type-imports/input.ts
* imports/parameter-decorators/input.ts
* imports/property-signature/input.ts
* imports/type-only-export-specifier-1/input.ts
* imports/type-only-export-specifier-2/input.ts
* imports/type-only-import-specifier-1/input.ts
* imports/type-only-import-specifier-2/input.ts
* imports/type-only-import-specifier-3/input.ts
* imports/type-only-import-specifier-4/input.ts
* namespace/alias/input.ts
* namespace/ambient-module-nested/input.ts
* namespace/ambient-module-nested-exported/input.ts
* namespace/canonical/input.ts
* namespace/clobber-class/input.ts
* namespace/clobber-enum/input.ts
* namespace/clobber-export/input.ts
* namespace/clobber-import/input.ts
* namespace/contentious-names/input.ts
* namespace/declare/input.ts
* namespace/declare-global-nested-namespace/input.ts
* namespace/empty-removed/input.ts
* namespace/export/input.ts
* namespace/export-type-only/input.ts
* namespace/module-nested/input.ts
* namespace/module-nested-export/input.ts
* namespace/multiple/input.ts
* namespace/mutable-fail/input.ts
* namespace/namespace-flag/input.ts
* namespace/namespace-nested-module/input.ts
* namespace/nested/input.ts
* namespace/nested-destructuring/input.ts
* namespace/nested-namespace/input.ts
* namespace/nested-shorthand/input.ts
* namespace/nested-shorthand-export/input.ts
* namespace/same-name/input.ts
* namespace/undeclared/input.ts
* optimize-const-enums/custom-values/input.ts
* optimize-const-enums/custom-values-exported/input.ts
* optimize-const-enums/declare/input.ts
* optimize-const-enums/export-const-enum/input.ts
* optimize-const-enums/export-const-enum-type-and-value/input.ts
* optimize-const-enums/export-const-enum-type-no-deopt/input.ts
* optimize-const-enums/exported/input.ts
* optimize-const-enums/local/input.ts
* optimize-const-enums/local-shadowed/input.ts
* optimize-const-enums/merged/input.ts
* optimize-const-enums/merged-exported/input.ts
* regression/10162/input.ts
* regression/10338/input.ts
* regression/11061/input.mjs
* regression/15768/input.ts
* variable-declaration/non-null-in-optional-chain/input.ts

# babel-plugin-transform-react-display-name (15/16)
* display-name/nested/input.js

6 changes: 3 additions & 3 deletions tasks/transform_conformance/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ const CASES: &[&str] = &[
// "babel-plugin-transform-new-target",
// // ES3
// "babel-plugin-transform-property-literals",
// // TypeScript
// "babel-plugin-transform-typescript",
// // React
// TypeScript
"babel-plugin-transform-typescript",
// React
// "babel-plugin-transform-react-jsx",
"babel-plugin-transform-react-display-name",
// // Proposal
Expand Down

0 comments on commit f3a28c6

Please sign in to comment.