jest-community / jest-editor-support

A module for handling editor to jest integration
MIT License
28 stars 21 forks source link

add parser plugin options for decorators #99

Closed connectdotz closed 1 year ago

connectdotz commented 1 year ago

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 commented 1 year ago

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

connectdotz commented 1 year ago

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