{"id":22444625,"url":"https://github.com/zapkub/mock-n-roll","last_synced_at":"2025-03-27T10:43:05.485Z","repository":{"id":34361974,"uuid":"177767296","full_name":"zapkub/mock-n-roll","owner":"zapkub","description":"🤘🏼🎸 Enjoy the Typescript interface mocking generator !!","archived":false,"fork":false,"pushed_at":"2023-01-03T18:33:44.000Z","size":1614,"stargazers_count":0,"open_issues_count":13,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T09:21:25.834Z","etag":null,"topics":["generator","interface","mock","mockery","typescript"],"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/zapkub.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-03-26T10:39:54.000Z","updated_at":"2019-05-28T06:07:36.000Z","dependencies_parsed_at":"2023-01-15T06:45:42.544Z","dependency_job_id":null,"html_url":"https://github.com/zapkub/mock-n-roll","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zapkub%2Fmock-n-roll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zapkub%2Fmock-n-roll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zapkub%2Fmock-n-roll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zapkub%2Fmock-n-roll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zapkub","download_url":"https://codeload.github.com/zapkub/mock-n-roll/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245832607,"owners_count":20679701,"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":["generator","interface","mock","mockery","typescript"],"created_at":"2024-12-06T03:09:04.332Z","updated_at":"2025-03-27T10:43:05.461Z","avatar_url":"https://github.com/zapkub.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mock 'N' Roll 🤘🏼\nThe Typescript interface mock generator. It will useful for Dependency Injection, Inversion and also Clean architecture onion layer testing and more !\n\n# Usage\n```\nmnroll --path \u003cpath_to_ts_file\u003e --out \u003cresult_folder:./__generated__\u003e --name \u003cname_of_class_or_interface\u003e\n```\n\n\n# Basic test\n```typescript\n// Source interface\nexport interface User {\n  id: string\n  name: string\n}\nexport interface UserRepository {\n  randomUser(): User\n}\n```\n\n```typescript\n// Test\n  it('Should return promise of object type correctly', async () =\u003e {\n    const u = new UserRepository()\n    u.mocks.randomUser().toReturn({ id: 'TEST', name: 'TEST' })\n    const result = u.randomUser()\n    expect(result).toEqual({ id: 'TEST', name: 'TEST' })\n  })\n```\n\n# License\nMIT.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzapkub%2Fmock-n-roll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzapkub%2Fmock-n-roll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzapkub%2Fmock-n-roll/lists"}