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

Its is a good practice for Next.js? #816

Open
LksR-dev opened this issue Feb 1, 2023 · 0 comments
Open

Its is a good practice for Next.js? #816

LksR-dev opened this issue Feb 1, 2023 · 0 comments

Comments

@LksR-dev
Copy link

LksR-dev commented Feb 1, 2023

Im trying TDD with Next.js, supertest and jest. I dont know If Im doing good.

Repo: https://github.com/LksR-dev/crud-nextjs-ts

The process.env.BASE_URL_LOCAL is the localhost, Every time I run the test it makes an actual API call and writes the database.

image

I'v tried it creating a server like this:

image

And the test folder:

image

But doing this way, the app doesn't acknowledges the env variables.

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

1 participant