{"id":20648132,"url":"https://github.com/vic-lsh/jest-test-cases","last_synced_at":"2026-04-19T17:01:58.176Z","repository":{"id":57280494,"uuid":"313386930","full_name":"vic-lsh/jest-test-cases","owner":"vic-lsh","description":"Utility library that facilitates test-case-driven development.","archived":false,"fork":false,"pushed_at":"2020-11-18T18:43:51.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-30T14:26:23.499Z","etag":null,"topics":["jest","test-case"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/jest-test-cases","language":"TypeScript","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/vic-lsh.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2020-11-16T18:07:41.000Z","updated_at":"2020-11-18T18:44:56.000Z","dependencies_parsed_at":"2022-09-19T17:11:37.896Z","dependency_job_id":null,"html_url":"https://github.com/vic-lsh/jest-test-cases","commit_stats":null,"previous_names":["vic-lee/jest-test-cases","vicshli/jest-test-cases","vic-lsh/jest-test-cases"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vic-lsh/jest-test-cases","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic-lsh%2Fjest-test-cases","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic-lsh%2Fjest-test-cases/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic-lsh%2Fjest-test-cases/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic-lsh%2Fjest-test-cases/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vic-lsh","download_url":"https://codeload.github.com/vic-lsh/jest-test-cases/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic-lsh%2Fjest-test-cases/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271755436,"owners_count":24815407,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["jest","test-case"],"created_at":"2024-11-16T17:06:25.441Z","updated_at":"2026-04-19T17:01:58.075Z","avatar_url":"https://github.com/vic-lsh.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jest-test-cases\n\nUtility library that facilitates test-case-driven development.\n\n## Description\n\n`describeTestcase` helps you highlight the essence of a test: inputs and outputs. Focus on coming up with more test cases, and let the library do the assertions for you.\n\n```ts\nfunction toCamelCase(s: string) {\n    // ...\n}\n\ndescribeTestcase(\"utils/toCamelCase\", toCamelCase, {\n    testCases: [\n        {\n            should: \"return an empty string\",\n            given: \"an empty string\",\n            cases: { input: \"\", expected: \"\" }\n        },\n        {\n            should: \"transform input to camel case strings\",\n            given: \"a non-empty string\",\n            cases: [\n                { input: \"Hello world\", expected: \"helloWorld\" },\n                { input: \"word\", expected: \"word\" },\n                { input: \"camelCased\", expected: \"camelCased\" }\n            ]\n        }\n    ]\n})\n```\n\nInstead of:\n\n```ts\ndescribe(\"utils/toCamelCase\", () =\u003e {\n    it(\"should return an empty string given an empty string\", () =\u003e {\n        expect(toCamelCase(\"\")).toEqual(\"\");\n    })\n\n    it(\"should transform input to camel case strings given a non-empty string\", () =\u003e {\n        expect(toCamelCase(\"Hello World\")).toEqual(\"helloWorld\");\n        expect(toCamelCase(\"word\")).toEqual(\"word\");\n        expect(toCamelCase(\"camelCased\")).toEqual(\"camelCased\");\n\n    })\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvic-lsh%2Fjest-test-cases","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvic-lsh%2Fjest-test-cases","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvic-lsh%2Fjest-test-cases/lists"}