Next.js Discord

Discord Forum

How to get the test mode working?

Unanswered
Large oak-apple gall posted this in #help-forum
Open in Discord
Avatar
Large oak-apple gallOP
I am trying to get the test mode working with next14 but I am running into multiple issues.
- build does not understand the testProxy flag
Unrecognized key(s) in object: 'testProxy' at "experimental"
- PR (https://github.com/vercel/next.js/pull/52520) references(packages/next/src/experimental/testmode/playwright/README.md) OnFetch inside of next. How does this work? Is next a global variable here?
TypeError: (0 , _next.onFetch) is not a function

Has anybody got a sample repo where test mode works?
I am trying to set one up. Will share the repo here for reference my morning.

0 Replies