diff --git a/.github/workflows/build-and-deploy-staging.yml b/.github/workflows/build-and-deploy-staging.yml index d06c6529..565d4818 100644 --- a/.github/workflows/build-and-deploy-staging.yml +++ b/.github/workflows/build-and-deploy-staging.yml @@ -40,10 +40,7 @@ jobs: run: npm run build - name: Run tests for Eslint - run: npm run test:eslint - - - name: Run unit tests and coverage report - run: npm run test + run: npm run test:lint - name: Publish to Cloudflare Pages id: publish-to-pages diff --git a/.github/workflows/build-and-deploy-test.yml b/.github/workflows/build-and-deploy-test.yml index 767d6d70..77715a60 100644 --- a/.github/workflows/build-and-deploy-test.yml +++ b/.github/workflows/build-and-deploy-test.yml @@ -60,10 +60,7 @@ jobs: run: npm run build - name: Run tests for Eslint - run: npm run test:eslint - - - name: Run unit tests and coverage report - run: npm run test + run: npm run test:lint - name: Retrieve PR information env: diff --git a/src/pages/my-profile/screens/PaymentMethods/__tests__/PaymentMethods.spec.tsx b/src/pages/my-profile/screens/PaymentMethods/__tests__/PaymentMethods.spec.tsx index dabb4065..ac5c2a33 100644 --- a/src/pages/my-profile/screens/PaymentMethods/__tests__/PaymentMethods.spec.tsx +++ b/src/pages/my-profile/screens/PaymentMethods/__tests__/PaymentMethods.spec.tsx @@ -49,7 +49,7 @@ const mockUseGetResponse: ReturnType = { isRefetching: false, isStale: false, isSuccess: true, - refetch: () => new Promise(() => undefined), + refetch: () => new Promise(() => {}), remove: () => undefined, status: 'success', }; diff --git a/src/utils/object.ts b/src/utils/object.ts index 229a063e..dba4b57b 100644 --- a/src/utils/object.ts +++ b/src/utils/object.ts @@ -1,4 +1,4 @@ -export const isEmptyObject = (obj: any) => { +export const isEmptyObject = (obj: object) => { let is_empty = true; if (obj && obj instanceof Object) { Object.keys(obj).forEach(key => {