{"id":28487343,"url":"https://github.com/live-codes/browser-jest","last_synced_at":"2025-07-01T21:32:37.456Z","repository":{"id":194711913,"uuid":"691679856","full_name":"live-codes/browser-jest","owner":"live-codes","description":"Run Jest in the browser","archived":false,"fork":false,"pushed_at":"2023-09-16T21:17:00.000Z","size":1137,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-08T04:42:41.323Z","etag":null,"topics":[],"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/live-codes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":"FUNDING.yml","license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":["hatemhosny"],"ko_fi":"hatemhosny","custom":["https://paypal.me/hatemhosni"]}},"created_at":"2023-09-14T16:58:31.000Z","updated_at":"2023-09-14T17:01:09.000Z","dependencies_parsed_at":"2023-09-14T20:59:06.426Z","dependency_job_id":null,"html_url":"https://github.com/live-codes/browser-jest","commit_stats":null,"previous_names":["live-codes/browser-jest"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/live-codes/browser-jest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/live-codes%2Fbrowser-jest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/live-codes%2Fbrowser-jest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/live-codes%2Fbrowser-jest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/live-codes%2Fbrowser-jest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/live-codes","download_url":"https://codeload.github.com/live-codes/browser-jest/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/live-codes%2Fbrowser-jest/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263039396,"owners_count":23404174,"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":[],"created_at":"2025-06-08T04:30:45.780Z","updated_at":"2025-07-01T21:32:37.447Z","avatar_url":"https://github.com/live-codes.png","language":"JavaScript","funding_links":["https://github.com/sponsors/hatemhosny","https://ko-fi.com/hatemhosny","https://paypal.me/hatemhosni"],"categories":[],"sub_categories":[],"readme":"# Jest in Browser\n\nThis project aims to make Jest work in the browser. As used in [LiveCodes](https://github.com/live-codes/livecodes).\n\n## Usage\n\nESM:\n\n```js\nimport {\n  afterAll,\n  afterEach,\n  beforeAll,\n  beforeEach,\n  describe,\n  fdescribe,\n  xdescribe,\n  it,\n  test,\n  fit,\n  xtest,\n  xit,\n  expect,\n  jest,\n  run,\n} from 'https://unpkg.com/@live-codes/browser-jest';\n\ntest.each([\n  [1, 1, 2],\n  [1, 2, 3],\n  [2, 1, 3],\n])('.add(%i, %i)', (a, b, expected) =\u003e {\n  expect(a + b).toBe(expected);\n});\n\ntest('adds 1 + 2 to equal 3', () =\u003e {\n  expect(1 + 2).toBe(3);\n});\n\nrun().then((results) =\u003e {\n  console.log(results);\n});\n```\n\nUMD:\n\n```html\n\u003cscript src=\"https://unpkg.com/@live-codes/browser-jest/dist/browser-jest.umd.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  const {\n    afterAll,\n    afterEach,\n    beforeAll,\n    beforeEach,\n    describe,\n    fdescribe,\n    xdescribe,\n    it,\n    test,\n    fit,\n    xtest,\n    xit,\n    expect,\n    jest,\n    run,\n  } = window.browserJest;\n\u003c/script\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flive-codes%2Fbrowser-jest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flive-codes%2Fbrowser-jest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flive-codes%2Fbrowser-jest/lists"}