Strapi 4 - unit testing with admin user

System Information
  • Strapi Version:
  • Operating System:
  • Database:
  • Node Version:
  • NPM Version:
  • Yarn Version:

Does anyone have experience testing (e.g. with jest) with an admin user on v4?

I’m testing a custom plugin with admin endpoints but not sure how to programmatically create the admin in the test database

I found this example but it only seems to cover api users, rather than admin: