reassure icon indicating copy to clipboard operation
reassure copied to clipboard

[FEATURE] Support for NextJS setups not using Babel.

Open MeanBoyCousin opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe. I'm attempting to set up Reassure for a NextJS 14 application (using the new app router, SWC, etc.) and running Reassure is complaining about Babel config which the project doesn't have.

Describe the solution you'd like A way to implement reassure without the need for Babel.

Describe alternatives you've considered N/A

Additional context Here's a small snippet from the output (happy to share more detail if needed).

 ● Test suite failed to run

Jest encountered an unexpected token

Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.

Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.

MeanBoyCousin avatar Nov 13 '23 18:11 MeanBoyCousin

Are you user this is Reassure issue? Reassure itself does not have a direct dependency or use of Babel. Most probably this is a Jest issue.

mdjastrzebski avatar Mar 08 '24 12:03 mdjastrzebski

Tbh I have since switched over to using Vitest and not had time to try setting up Reassure again. Do you have support for Vitest?

MeanBoyCousin avatar Mar 08 '24 15:03 MeanBoyCousin

Vite yes (with Babel - see example repo), Vitest probably no. Contribution in this area are welcomed.

mdjastrzebski avatar Jun 17 '24 13:06 mdjastrzebski