{"id":15598381,"url":"https://github.com/fluffynuts/expect-even-more-jest","last_synced_at":"2025-08-02T05:07:44.538Z","repository":{"id":38449041,"uuid":"267876620","full_name":"fluffynuts/expect-even-more-jest","owner":"fluffynuts","description":"expect-more-jest with even more stuff","archived":false,"fork":false,"pushed_at":"2024-09-13T09:06:51.000Z","size":831,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-11T16:54:07.181Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fluffynuts.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,"publiccode":null,"codemeta":null}},"created_at":"2020-05-29T14:21:22.000Z","updated_at":"2024-09-13T09:06:52.000Z","dependencies_parsed_at":"2024-06-20T19:04:45.155Z","dependency_job_id":"05cef2a5-7efe-49f2-b4f2-bb2763680a0c","html_url":"https://github.com/fluffynuts/expect-even-more-jest","commit_stats":{"total_commits":55,"total_committers":2,"mean_commits":27.5,"dds":"0.36363636363636365","last_synced_commit":"3c0e2baed79532cfc866059b464564d114e10edc"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/fluffynuts/expect-even-more-jest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluffynuts%2Fexpect-even-more-jest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluffynuts%2Fexpect-even-more-jest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluffynuts%2Fexpect-even-more-jest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluffynuts%2Fexpect-even-more-jest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluffynuts","download_url":"https://codeload.github.com/fluffynuts/expect-even-more-jest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluffynuts%2Fexpect-even-more-jest/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268337998,"owners_count":24234538,"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-02T02:00:12.353Z","response_time":74,"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":[],"created_at":"2024-10-03T01:38:45.879Z","updated_at":"2025-08-02T05:07:44.500Z","avatar_url":"https://github.com/fluffynuts.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# expect-even-more-jest\n![Test](https://github.com/fluffynuts/expect-even-more-jest/workflows/Tests/badge.svg)\n\n![npm](https://img.shields.io/npm/v/expect-even-more-jest)\n\n## What is it?\n\nIt's [expect-more-jest](https://www.npmjs.com/package/expect-more-jest) with _even more_ stuff!\n\n## Why?\n\nBecause [expect-more-jest](https://www.npmjs.com/package/expect-more-jest) has most of the things\nI need, but is missing a few, which I'm not entirely sure would be accepted upstream. This way, I\npresent one package with all the tastiness of\n[expect-more-jest](https://www.npmjs.com/package/expect-more-jest) _as well as_ all the useful\nthings that _I_ like!\n\n## Ok, so what's in the tin?\n\nFirst, check out what [expect-more-jest supplies](https://www.npmjs.com/package/expect-more-jest#-matchers)\nCool, huh?\n\nNow, in addition to that, I've added:\n\n```typescript\ndescribe(`expect-even-more-jest', () =\u003e {\n    it(`makes your tests and output easier to read as well!`, async () =\u003e {\n        // values\n        expect(SomeClass).toBeConstructor();\n        expect(new SomeClass()).toBeA(SomeClass);\n        // syntactic sugar: better flowing\n        expect(new ExcitedThing()).toBeAn(ExcitedThing);\n        // test that a value is not null or undefined\n        expect(someValue).toExist();\n        // tests matching properties on two objects\n        expect({ foo: 1, bar: 2 })\n            .toIntersectionEqual({ foo: 1, quux: 2 });\n\n        // mocks \u0026 spies\n        expect(spyOrMock).toHaveBeenCalledOnce();\n        expect(spyOrMock).toHaveBeenCalledOnceWith(\"hello\", \"world\");\n\n        // promises\n        // - completed promises have resolved _or_ rejected\n        await expect(Promise.resolve()).toBeCompleted();\n        await expect(Promise.reject()).toBeCompleted();\n\n        // test that a promise resolves within a timeframe (defaults to 50 ms)\n        await expect(Promise.resolve()).toBeResolved(\"should have resolved\", 5000);\n        // test that a promise rejects within a timeframe (defaults to 50 ms)\n        await expect(Promise.reject()).toBeRejected(\"should have rejected\", 123);\n        expect(new Promise(() =\u003e {})).toBePromiseLike();\n\n        // file system\n        expect(pathToFile).toBeFile();\n        expect(pathToFolder).toBeFolder();\n\n        // collections\n        expect([1, 2, 3 ]).toBeEquivalentTo([ 2, 1, 3]);\n        expect({ foo: 1 }).toHaveKey(\"foo\");\n        expect({ foo: 1, bar: 2 }).toHaveKeys(\"foo\", \"bar\");\n        expect([ 1, 2, 3 ]).toAllMatch(i =\u003e i \u003c 4);\n        // performs deep partial equality testing on elements of an array to find\n        // the search object, using jasmine.objectContaining (so you don't need\n        // to match _all_ properties!\n        expect(arrayOfObjects).toContainElementLike(search);\n    });\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluffynuts%2Fexpect-even-more-jest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluffynuts%2Fexpect-even-more-jest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluffynuts%2Fexpect-even-more-jest/lists"}