Skip to content
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

add parser plugin options for decorators #99

Merged
merged 6 commits into from
Jan 12, 2023

Conversation

connectdotz
Copy link
Collaborator

@connectdotz connectdotz commented Jan 11, 2023

adding an optional parameter for parse function to allow users to override decorators plugin. For example:

parse(file, undefined, {plugins: {decorators: 'legacy'}}
parse(file, undefined, {plugins: {decorators: {decoratorsBeforeExport: false}}}

The same change has been made to Snapshot parse functions.

resolve #89

@connectdotz
Copy link
Collaborator Author

@firsttris do you want to look at this PR before the merge?

@connectdotz connectdotz merged commit 3f492a9 into jest-community:master Jan 12, 2023
@connectdotz
Copy link
Collaborator Author

ok, I will merge first, a few other PR pending on this...

@connectdotz connectdotz deleted the parser-plugin-options branch January 12, 2023 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Typescript parameter decorator support
1 participant