From 7a122b3c13d2ba49da588cf089242cb219ab5cb9 Mon Sep 17 00:00:00 2001 From: Jean-Marc Millet Date: Tue, 3 Sep 2024 17:32:08 +0200 Subject: [PATCH] add ts-expect-error to skipped tests to avoid error with check-types --- src/react/actions/__tests__/s3object.test.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/react/actions/__tests__/s3object.test.ts b/src/react/actions/__tests__/s3object.test.ts index d01e86bac..d5ea73057 100644 --- a/src/react/actions/__tests__/s3object.test.ts +++ b/src/react/actions/__tests__/s3object.test.ts @@ -151,6 +151,7 @@ describe.skip('s3object actions', () => { const asyncTests = [ { it: 'createFolder: should return expected actions -> test without prefix parameter', + //@ts-expect-error fix this when you are working on it fn: actions.createFolder(BUCKET_NAME, '', FOLDER_NAME), storeState: initState, expectedActions: [ @@ -170,6 +171,8 @@ describe.skip('s3object actions', () => { }, { it: 'createFolder: should return expected actions -> test with prefix parameter', + //@ts-expect-error fix this when you are working on it + fn: actions.createFolder(BUCKET_NAME, PREFIX, FOLDER_NAME), storeState: initState, expectedActions: [ @@ -189,6 +192,8 @@ describe.skip('s3object actions', () => { }, { it: 'createFolder: should handle error -> test without prefix parameter', + //@ts-expect-error fix this when you are working on it + fn: actions.createFolder(BUCKET_NAME, '', FOLDER_NAME), storeState: errorZenkoState(), expectedActions: [ @@ -200,6 +205,8 @@ describe.skip('s3object actions', () => { }, { it: 'createFolder: should handle error -> test with prefix parameter', + //@ts-expect-error fix this when you are working on it + fn: actions.createFolder(BUCKET_NAME, PREFIX, FOLDER_NAME), storeState: errorZenkoState(), expectedActions: [ @@ -211,6 +218,7 @@ describe.skip('s3object actions', () => { }, { it: 'uploadFiles: should return expected actions -> test without prefix parameter', + //@ts-expect-error fix this when you are working on it fn: actions.uploadFiles(BUCKET_NAME, '', []), storeState: initState, expectedActions: [ @@ -230,6 +238,7 @@ describe.skip('s3object actions', () => { }, { it: 'uploadFiles: should return expected actions -> test with prefix parameter', + //@ts-expect-error fix this when you are working on it fn: actions.uploadFiles(BUCKET_NAME, PREFIX, []), storeState: initState, expectedActions: [