NextJS 14 with **pages** routing and MSW 2.x #2007
-
I'm trying to upgrade MSW to v2.1.2 in my NextJS project which only uses the pages routing (not app routing), and I have gotten the individual components to pass the test with API calls being mocked by MSW, but I can't get my pages which have 1-2 API calls each to run. I'm not making any API calls within I get the
I can post some of my configs. But my question is, can MSW work with the pages components that make API calls? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Please follow this pull request for updates on MSW + Next.js 14: mswjs/examples#101. Thanks. |
Beta Was this translation helpful? Give feedback.
Please follow this pull request for updates on MSW + Next.js 14: mswjs/examples#101. Thanks.