Is it possible to share Strapi instance across multiple test files?

Basically the title.

We’re using the Jest framework for testing, and I have a hard time sharing Strapi instance between test files. What I mean by Strapi instance is, that I don’t want to load a server on every test once the server was already registered and bootstrapped.

The official documentation doesn’t even mention this because it’s using one single file with one test case.

I found some solutions on the internet which I used to assemble my own, but I would be glad if anyone has some tips on how to do it properly or have an answer if it is even possible.

Thanks!

This topic has been created from a Discord post (1216684225647087646) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord