chore: create strapi mock for test

This commit is contained in:
Laurens Kling 2025-06-05 19:01:00 +02:00
parent 7de63df3ae
commit 9c04fd0da8

View File

@ -1,4 +1,5 @@
import createUploadService from '../../upload'; import createUploadService from '../../upload';
import imageManipulation from '../../image-manipulation';
const uploadService = createUploadService({} as any); const uploadService = createUploadService({} as any);
@ -8,6 +9,7 @@ describe('Upload service', () => {
plugins: { plugins: {
upload: { upload: {
services: { services: {
'image-manipulation': imageManipulation,
file: { file: {
getFolderPath: () => '/a-folder-path', getFolderPath: () => '/a-folder-path',
}, },