You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is about the testing setup of the Next.js project.
(Not about the testing about apps created with Next.js, that's something we should address too.)
We believe in a integration/end-to-end rather a bunch of unit tests which gives us better code coverage. That being said, we may have to unit tests for few utilities we are using.
We can breakdown what kind of tests we as follows:
Unit Tests
For the some of the utilities we use. Things like shallow-equals.js is a good example for that.
Isolated Tests (a form of integration tests)
We do this for the isolated utilities like server/resolve.js which we are using internally.
Integration/E2E Tests
Here are checking the actual features of next. We do this by actually running Next.js apps. We can incorporate example apps for this. We can simply place some tests inside those apps.
We may have to do some client side tests as well. For that, we could use WebDriver.
Q/A (Human Testing)
It's not possible to automate tests for some cases. One such area is HMR related features. For that, we need to test them manually.
At first, we may have bunch of these Q/A tests. Eventually, we could transform them into automated test cases.
The text was updated successfully, but these errors were encountered:
This is about the testing setup of the Next.js project.
(Not about the testing about apps created with Next.js, that's something we should address too.)
We believe in a integration/end-to-end rather a bunch of unit tests which gives us better code coverage. That being said, we may have to unit tests for few utilities we are using.
We can breakdown what kind of tests we as follows:
Unit Tests
For the some of the utilities we use. Things like shallow-equals.js is a good example for that.
Isolated Tests (a form of integration tests)
We do this for the isolated utilities like
server/resolve.js
which we are using internally.Integration/E2E Tests
Here are checking the actual features of next. We do this by actually running Next.js apps. We can incorporate example apps for this. We can simply place some tests inside those apps.
We may have to do some client side tests as well. For that, we could use WebDriver.
Q/A (Human Testing)
It's not possible to automate tests for some cases. One such area is HMR related features. For that, we need to test them manually.
At first, we may have bunch of these Q/A tests. Eventually, we could transform them into automated test cases.
The text was updated successfully, but these errors were encountered: