Skip to content

Conversation

@chalosalvador
Copy link
Contributor

Add functional tests for Next.js adapter

This PR introduces functional tests for the Next.js adapter and makes minor improvements to the starter template.

Changes

  • Added tests for packages/@apphosting/adapter-nextjs:
    • e2e/app.spec.ts with comprehensive tests for various Next.js features
    • e2e/run-local.ts to set up and run the test environment
    • package.json with new test scripts for unit and functional testing
  • Fixed TypeScript errors in the starter template:
    • Added void to onClick handler in RegenerateButton.tsx
    • Removed async from the route handler in route.ts

Testing

To run the new functional tests:

npm run test:functional

This will build the project, set up a test environment, and run the tests against a local Next.js server.

@alexastrum alexastrum self-requested a review September 16, 2024 15:15
@alexastrum alexastrum removed their request for review September 16, 2024 15:16
@jamesdaniels jamesdaniels merged commit 837f67b into main Sep 19, 2024
9 checks passed
@jamesdaniels jamesdaniels deleted the chalosalvador/nextjs-e2e branch September 19, 2024 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants