Skip to content

Commit

Permalink
add ts-expect-error to skipped tests to avoid error with check-types
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanMarcMilletScality committed Sep 3, 2024
1 parent 4b857d5 commit 7a122b3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/react/actions/__tests__/s3object.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand All @@ -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: [
Expand All @@ -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: [
Expand All @@ -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: [
Expand All @@ -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: [
Expand All @@ -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: [
Expand Down

0 comments on commit 7a122b3

Please sign in to comment.