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

testOptions aren't propagated through some of the test methods #581

Open
SKaistrenko opened this issue Jan 9, 2024 · 0 comments
Open

testOptions aren't propagated through some of the test methods #581

SKaistrenko opened this issue Jan 9, 2024 · 0 comments

Comments

@SKaistrenko
Copy link

applyTransform relies on testOptions for a parser option.
At the same time defineSnapshotTestFromFixture, defineSnapshotTest, runSnapshotTest (maybe others) don't propagate user-supplied testOptions.

A possible work-around is to run export the parser const from the transformer module, but that limit the ability to use the module with multiple transformers (e.g babylon and ts)

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

No branches or pull requests

1 participant