Skip to content

Commit

Permalink
ci: test
Browse files Browse the repository at this point in the history
  • Loading branch information
farrah-deriv committed Apr 25, 2024
1 parent 60edd85 commit 54646d5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build-and-deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/build-and-deploy-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const mockUseGetResponse: ReturnType<typeof mockUseGet> = {
isRefetching: false,
isStale: false,
isSuccess: true,
refetch: () => new Promise(() => undefined),
refetch: () => new Promise(() => {}),
remove: () => undefined,
status: 'success',
};
Expand Down
2 changes: 1 addition & 1 deletion src/utils/object.ts
Original file line number Diff line number Diff line change
@@ -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 => {
Expand Down

0 comments on commit 54646d5

Please sign in to comment.