You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See error "TypeError: Cannot read properties of undefined (reading 'buildId') at AppRouteRouteModule.handle"
Revert from next@canary(15.2.0-canary.28) to next 15.1.6 and the test works.
Additional context
In my project, I also get an error about console.error being called, which happens even if console.error is mocked.
Error: vitest-fail-on-console > Expected test not to call console.error().
If the error is expected, test for it explicitly by mocking it out using:
vi.spyOn(console, 'error').mockImplementation(() => {})
and test that the warning occurs.
TypeError: Cannot read properties of undefined (reading 'buildId')
at AppRouteRouteModule.handle
The text was updated successfully, but these errors were encountered:
The problem
Latest canary release breaks tests for API routes. I understand canary is unstable but I'm sharing in case it's helpful. Please close if not relevant.
This is the error:
Reproduction steps
Here's a simple reproduction:
https://stackblitz.com/edit/stackblitz-starters-fzzan9n5?file=package.json
npx vitest
Additional context
In my project, I also get an error about console.error being called, which happens even if console.error is mocked.Error: vitest-fail-on-console > Expected test not to call console.error().
If the error is expected, test for it explicitly by mocking it out using:
vi.spyOn(console, 'error').mockImplementation(() => {})
and test that the warning occurs.
TypeError: Cannot read properties of undefined (reading 'buildId')
at AppRouteRouteModule.handle
The text was updated successfully, but these errors were encountered: