From 1c6f990d4d529ec0bb14ed0f88ebc081fc074318 Mon Sep 17 00:00:00 2001 From: Boaz Poolman Date: Wed, 8 May 2024 21:21:45 +0200 Subject: [PATCH] fix: use createStrapi in the tests helpers --- playground/__tests__/helpers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playground/__tests__/helpers.js b/playground/__tests__/helpers.js index 2012430..28c56f8 100644 --- a/playground/__tests__/helpers.js +++ b/playground/__tests__/helpers.js @@ -1,11 +1,11 @@ const fs = require('fs'); -const Strapi = require('@strapi/strapi'); +const { createStrapi } = require('@strapi/strapi'); let instance; async function setupStrapi() { if (!instance) { - await Strapi().load(); + await createStrapi().load(); instance = strapi; await instance.server.mount();