Vitest: TypeError: response.body.getReader is not a function

Hi,
Could you please help me in the issue where i am stuck in the Mocking API section,
the test snippet:

describe(“ProductList”, () => {
it(“should render products list”, async () => {
render();

const items = await screen.findAllByRole("listitem");
expect(items.length).toBeGreaterThan(0);

});

and handlers file:
import { http, HttpResponse } from “msw”;
import { products } from “./data”;

export const handlers = [
http.get(“/categories”, () => {
return HttpResponse.json([
{ id: 1, name: “Electronics” },
{ id: 2, name: “Beauty” },
{ id: 3, name: “Gardening” },
]);
}),
http.get(“/products”, () => {
return HttpResponse.json(products);
}),
];

server file :
import { setupServer } from ‘msw/node’
import { handlers } from ‘./handlers’

export const server = setupServer(…handlers)

setup file:
import “@testing-library/jest-dom/vitest”;

import “cross-fetch/polyfill”;

import ResizeObserver from “resize-observer-polyfill”;

import { server } from “./mock/server”;

global.ResizeObserver = ResizeObserver;

beforeAll(() => server.listen());

afterEach(() => server.resetHandlers());

afterAll(() => server.close());

and the error show in the terminal
TestingLibraryElementError: Unable to find role=“listitem”

Ignored nodes: comments, script, style

Loading...

Ignored nodes: comments, script, style

Loading...
❯ waitForWrapper node_modules/.pnpm/@testing-library+dom@9.3.4/node_modules/@testing-library/dom/dist/wait-for.js:163:27 ❯ node_modules/.pnpm/@testing-library+dom@9.3.4/node_modules/@testing-library/dom/dist/query-helpers.js:86:33 ❯ tests/productList.test.tsx:8:32 6| render(); 7| 8| const items = await screen.findAllByRole("listitem"); | ^ 9| expect(items.length).toBeGreaterThan(0); 10| });