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

[FEATURE] Next.js example setup #226

Closed
mdjastrzebski opened this issue Oct 19, 2022 · 3 comments
Closed

[FEATURE] Next.js example setup #226

mdjastrzebski opened this issue Oct 19, 2022 · 3 comments

Comments

@mdjastrzebski
Copy link
Member

Is your feature request related to a problem? Please describe.
Create an example setup for Next.js app. Similar to our current examples/web-vite there would be examples/web-nextjs folder which would showcase how to connect Reassure with Next.js

Describe the solution you'd like
Generate a basic Next.js app, prefereably in TS, but could be also in JS there are any serious problems with TS. Then add Jest, RNTL and Reassure deps, and Reassure scripts to it. In order to have something to measure add the [SlowList])(https://github.com/callstack/reassure/blob/main/examples/web-vite/src/SlowList.perf-test.tsx) component and tests (both unit and perf) from web-vite example.

Make sure that you can run Reassure locally and that it does not generate warnings about not being able to set performance flags.

Voila! That's it.

Potential issues
There could be problems with making jest run unit/perf tests in some cases (they were some for Create React App, but non fore Vite web app).

@dmahajan980
Copy link

I'd like to work on this!

@mdjastrzebski
Copy link
Member Author

Go ahead @dmahajan980 !

@mdjastrzebski
Copy link
Member Author

Resolved in #367

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants