-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Tests hard-code some weird port numbers to access itself, this should not be necessary given the documented helpers.
We should refactor things a bit to
- cleanly separate unit and e2e tests (all unit?) - see https://github.com/nuxt/content/tree/v3/test for a good structure
- follow https://nuxt.com/docs/getting-started/testing#using-a-nuxt-runtime-environment
- use registerEndpoint() to register mock data https://nuxt.com/docs/getting-started/testing#registerendpoint
- keep nuxt-config for tests within the test files and follow documentation on how to create the nuxt environment
- remove our custom hacks around ports, those should not be necessasry once we are following the docs properly
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels