{"id":13801214,"url":"https://github.com/gcaptn/tincan","last_synced_at":"2025-05-13T11:30:55.280Z","repository":{"id":44419082,"uuid":"367325199","full_name":"gcaptn/tincan","owner":"gcaptn","description":"A BDD testing library for Deno","archived":true,"fork":false,"pushed_at":"2025-01-22T08:20:19.000Z","size":189,"stargazers_count":37,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T06:47:12.010Z","etag":null,"topics":["bdd","deno","testing"],"latest_commit_sha":null,"homepage":"https://deno.land/x/tincan","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/gcaptn.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-05-14T10:15:51.000Z","updated_at":"2025-01-22T08:20:54.000Z","dependencies_parsed_at":"2024-04-26T05:37:33.044Z","dependency_job_id":"cee2e21b-46e7-436b-9197-0825ea6d01c5","html_url":"https://github.com/gcaptn/tincan","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcaptn%2Ftincan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcaptn%2Ftincan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcaptn%2Ftincan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcaptn%2Ftincan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gcaptn","download_url":"https://codeload.github.com/gcaptn/tincan/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253932777,"owners_count":21986448,"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":["bdd","deno","testing"],"created_at":"2024-08-04T00:01:20.594Z","updated_at":"2025-05-13T11:30:55.271Z","avatar_url":"https://github.com/gcaptn.png","language":"TypeScript","funding_links":[],"categories":["Modules","TypeScript"],"sub_categories":["Testing"],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./preview.png\" width=\"80%\" align=\"center\"/\u003e\n  \u003ch1 align=\"center\"\u003etincan\u003c/h1\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003eA lightweight Jest-like testing library for Deno\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/gcaptn/tincan/actions/\"\u003e\u003cimg alt=\"ci\" src=\"https://github.com/gcaptn/tincan/workflows/CI/badge.svg\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://www.codefactor.io/repository/github/gcaptn/tincan/\"\u003e\u003cimg alt=\"CodeFactor\" src=\"https://www.codefactor.io/repository/github/gcaptn/tincan/badge\" /\u003e\u003c/a\u003e\n    \u003cimg src=\"https://shields.io/github/v/tag/gcaptn/tincan\" /\u003e\n    \u003ca href=\"https://deno.land/x/tincan\"\u003e\u003cimg alt=\"deno.land/x\" src=\"http://img.shields.io/badge/available%20on-deno.land/x-lightgrey.svg?logo=deno\u0026labelColor=black\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Deprecation\n\nSee the standard library's BDD testing interface instead:\nhttps://jsr.io/@std/testing/doc/bdd\n\n## Features\n\n- Nested suites / cases\n- Reports cases with the full hierarchy\n- Hooks (`beforeAll`, `afterAll`, `beforeEach`, `afterEach`)\n- Focusing (`*.only()`)\n- Skipping (`*.skip()`)\n- Uses `Deno.test`, works with the built-in reporter\n- Lightweight\n\n## Running\n\n```sh\ndeno test\n```\n\n## Usage\n\n```ts\nimport {\n  beforeEach,\n  describe,\n  expect,\n  it,\n  run,\n} from \"https://deno.land/x/tincan/mod.ts\";\n\ndescribe(\"Array\", () =\u003e {\n  let array: number[];\n\n  beforeEach(() =\u003e {\n    array = [];\n  });\n\n  describe(\"#indexOf()\", () =\u003e {\n    it(\"should return the first index of an item\", () =\u003e {\n      array.push(0);\n      expect(array.indexOf(0)).toBe(0);\n    });\n\n    it.only(\"should return -1 when the item isn't found\", () =\u003e {\n      expect(array.indexOf(0)).toBe(-1);\n    });\n  });\n});\n\nrun();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgcaptn%2Ftincan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgcaptn%2Ftincan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgcaptn%2Ftincan/lists"}