{"id":18609694,"url":"https://github.com/unlight/jest-createspyobj","last_synced_at":"2025-04-10T22:31:37.858Z","repository":{"id":57280271,"uuid":"127886977","full_name":"unlight/jest-createspyobj","owner":"unlight","description":"Helper function to create spy object for `jest`, same as `jasmine.createSpyObj`","archived":false,"fork":false,"pushed_at":"2020-12-06T16:38:55.000Z","size":18,"stargazers_count":8,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T05:41:36.498Z","etag":null,"topics":["createspyobj","jasmine","jest","spy"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unlight.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-03T09:49:43.000Z","updated_at":"2024-11-20T03:01:28.000Z","dependencies_parsed_at":"2022-09-19T15:10:54.490Z","dependency_job_id":null,"html_url":"https://github.com/unlight/jest-createspyobj","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlight%2Fjest-createspyobj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlight%2Fjest-createspyobj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlight%2Fjest-createspyobj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlight%2Fjest-createspyobj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unlight","download_url":"https://codeload.github.com/unlight/jest-createspyobj/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248309727,"owners_count":21082269,"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":["createspyobj","jasmine","jest","spy"],"created_at":"2024-11-07T03:06:59.525Z","updated_at":"2025-04-10T22:31:37.556Z","avatar_url":"https://github.com/unlight.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jest-createspyobj\n\nHelper function to create spy object for `jest`, same as `jasmine.createSpyObj`\n\n## USAGE\n\n```ts\nimport { createSpyObj } from 'jest-createspyobj';\n\nclass Tape {\n    play() {}\n    pause() {}\n}\n\nconst spy1 = createSpyObj('Tape', ['play', 'pause']);\nconst spy1 = createSpyObj(Tape);\n```\n\n## API\n\n```ts\nfunction createSpyObj(ref: string, methods: string[]): jest.Mocked\u003cany\u003e;\nfunction createSpyObj\u003cT\u003e(ref: Constructor\u003cT\u003e, methods?: string[]): jest.Mocked\u003cT\u003e;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funlight%2Fjest-createspyobj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funlight%2Fjest-createspyobj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funlight%2Fjest-createspyobj/lists"}