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
cancel the running process in the terminal and run npm test - you will see the failure.
Describe the bug
It seems that when registerEndpoint is called on a path containing two levels deep such as /api/foo, then subsequent calls to registerEndpoint on paths containing that root will fail to register. Ie, registerEndpoint('/api/foo/bar', ...) will silently fail. Calls to that deeper path when run in the test context receive the shorter path's response.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
Reproduction
https://stackblitz.com/edit/nuxt-starter-fvrlkg?file=tests/app.test.ts,app.vue
cancel the running process in the terminal and run
npm test
- you will see the failure.Describe the bug
It seems that when
registerEndpoint
is called on a path containing two levels deep such as/api/foo
, then subsequent calls to registerEndpoint on paths containing that root will fail to register. Ie,registerEndpoint('/api/foo/bar', ...)
will silently fail. Calls to that deeper path when run in the test context receive the shorter path's response.Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: