{"id":24770268,"url":"https://github.com/voodoocreation/jest-mocks","last_synced_at":"2026-04-28T23:02:41.542Z","repository":{"id":38011294,"uuid":"228311781","full_name":"voodoocreation/jest-mocks","owner":"voodoocreation","description":"A set of useful mocks and helpers for the Jest unit testing framework.","archived":false,"fork":false,"pushed_at":"2023-03-04T05:26:47.000Z","size":1090,"stargazers_count":0,"open_issues_count":9,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T01:41:12.306Z","etag":null,"topics":["async-functions","async-jest-mocks","async-mocks","frontend","frontend-test","frontend-testing","jest","jest-mocks","mock","mock-function","mock-functions","mocks","promises","test","testing","tests","unit-test","unit-testing","unit-tests"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/voodoocreation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-16T05:46:11.000Z","updated_at":"2023-01-31T17:46:58.000Z","dependencies_parsed_at":"2023-02-07T05:01:30.016Z","dependency_job_id":null,"html_url":"https://github.com/voodoocreation/jest-mocks","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voodoocreation%2Fjest-mocks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voodoocreation%2Fjest-mocks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voodoocreation%2Fjest-mocks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voodoocreation%2Fjest-mocks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/voodoocreation","download_url":"https://codeload.github.com/voodoocreation/jest-mocks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245161926,"owners_count":20570690,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["async-functions","async-jest-mocks","async-mocks","frontend","frontend-test","frontend-testing","jest","jest-mocks","mock","mock-function","mock-functions","mocks","promises","test","testing","tests","unit-test","unit-testing","unit-tests"],"created_at":"2025-01-29T03:03:36.328Z","updated_at":"2026-04-28T23:02:41.472Z","avatar_url":"https://github.com/voodoocreation.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Jest Mocks\n==========\n\nA set of useful mocks and helpers for the Jest unit testing framework.\n\n\nAvailable helpers\n-----------------\n\nAll provided helpers have full TypeScript support with inferred types based on the arguments\nthey're called with.\n\n\n### `filterMockCalls(mock, ...args)`\nReturns an array of calls from the provided Jest Mock, where `args` matches the args the mock was\ncalled with.\n\n\n### `findMockCall(mock, ...args)`\nReturns the first matching call from the provided Jest Mock, where `args` matches the args the mock\nwas called with.\n\n\n### `resolvedPromise(value)`\nReturns a `Promise` that will instantly resolve with the provided `value`.\n\n\n### `rejectedPromise(error)`\nReturns a `Promise` that will instantly be rejected with the provided `error`.\n\n\n### `mockWithResolvedPromise(value)`\nReturns an `async` Jest Mock that will instantly resolve with the provided `value` when called.\n\n\n### `mockWithRejectedPromise(error)`\nReturns an `async` Jest Mock that will instantly be rejected with the provided `error` when called.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoodoocreation%2Fjest-mocks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoodoocreation%2Fjest-mocks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoodoocreation%2Fjest-mocks/lists"}