packages/tests-e2e/README.md
This e2e testing suite tries to cover different permutations and features that Nextjs provides to catch missing features and/or breaking changes.
The 3 permutations are:
Their respective tests/ folders are:
Their respective packages/ are located at:
The GitHub actions will trigger the e2e test, which deploys the app in the Example folder. The deploy command is:
cd examples/sst
npx sst deploy --stage e2e
export APP_ROUTER_URL=$(jq -r '.["e2e-example-AppRouter"].url' .sst/outputs.json)
export PAGES_ROUTER_URL=$(jq -r '.["e2e-example-PagesRouter"].url' .sst/outputs.json)
export APP_PAGES_ROUTER_URL=$(jq -r '.["e2e-example-AppPagesRouter"].url' .sst/outputs.json)
cd ../../packages/tests-e2e
pnpm run e2e:dev
isr.test.ts returns a timestamp, when running next dev, ISR does not cache so each reload is a new timestamp. You'll need to next build and next start for Next to not cache.