mason wang

Results comments of mason wang

PR: https://github.com/lazaronixon/authentication-zero/pull/142

> I just noticed vite-dev connection is logging an error each 1s: > net::ERR_CONNECTION_REFUSED Add dev host to `vite.json` can solve the issue, it's about HMR, failed to connect to...

Thanks @phryneas , and this works for me ```js // vitest-fetch-mock fetch.mockResponseOnce(JSON.stringify({ name: "bulbasaur" })); const expectedRequest = new Request( "https://pokeapi.co/api/v2/pokemon/bulbasaur", { signal: new AbortController().signal }, ); expect(fetch).toHaveBeenCalledWith(expectedRequest); ```