-
-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(transformer): add legacy decorator tests that come from TypeScript
#8692
chore(transformer): add legacy decorator tests that come from TypeScript
#8692
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
3dd1f4d
to
0abe2b8
Compare
When ever you decide to merge. |
30c5764
to
05c7d6a
Compare
05c7d6a
to
e9a39d9
Compare
e2f2553
to
008e95a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aside from my comments about the JS, there's only one thing... could you please add a comment to the top of the fixtures updater, with the URL where the original fixtures come from? And also note what kind of modifications you made to the fixtures, aside from what this script does?
If we find bugs many months down the line, it'd be helpful to have this info if we need to retrace our steps...
tasks/transform_conformance/tests/legacy-decorators/test/fixtures/index.js
Outdated
Show resolved
Hide resolved
tasks/transform_conformance/tests/legacy-decorators/test/fixtures/index.js
Outdated
Show resolved
Hide resolved
Ignore my last comment! I just saw that info's all in the comment on the transformer added in #8614. |
008e95a
to
9849088
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
Please go ahead and merge once conformance task fail is fixed.
9849088
to
04ac545
Compare
Merge activity
|
…ript` (#8692) Part of #8614 All tests copy over from https://github.com/microsoft/TypeScript/blob/8da951cbb629b648753454872df4e1754982aef1/tests/cases/conformance/decorators/class, in addition, several multi-file tests were also adjusted. The output is generated by ```ts transpileModule( source, { compilerOptions: { target: 'esnext', experimentalDecorators: true, noEmitHelpers: true }, } ) ``` and replace all `__decorate` with `babelHelpers.decorate` and `__param` with `babelHelpers.decorateParam`
04ac545
to
cad04d6
Compare
Part of #8614
All tests copy over from https://github.com/microsoft/TypeScript/blob/8da951cbb629b648753454872df4e1754982aef1/tests/cases/conformance/decorators/class, in addition, several multi-file tests were also adjusted.
The output is generated by
and replace all
__decorate
withbabelHelpers.decorate
and__param
withbabelHelpers.decorateParam