Check your setup script has the line below from Testing | Strapi 5 Documentation
await instance.server.mount();