Unit Tests: strapi.server.httpServer not working

Check your setup script has the line below from Testing | Strapi 5 Documentation

await instance.server.mount();