Skip to content

Add e2e tests that test just the build process #331

@dario-piotrowicz

Description

@dario-piotrowicz

When applications are build using the adapter there are a few things that can happen in the terminal:

  • some prompts (e.g. for creating missing open-next and wrangler config files)
  • logs (e.g. workers saved at: )
  • build errors occur (e.g. getCloudflareContext being used in an SSG'd route)

These things can't be tested in our playwright e2es since they simply rely on a preview command and test the application's functionalities, so ideally we should create a new set of "lower level" e2es that can test the build aspect of the adapter itself.

Additionally with this we can also test that files have been correctly saved onto the filesystem (e.g. handler.mjs.meta.json).


Original conversation: #330 (review)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions