{"id":20521737,"url":"https://github.com/coco-platform/vscode-jest-snippets","last_synced_at":"2026-01-31T13:02:07.148Z","repository":{"id":88436578,"uuid":"271693930","full_name":"coco-platform/vscode-jest-snippets","owner":"coco-platform","description":"yet, another vscode jest snippets, thanks to andys8, see https://marketplace.visualstudio.com/items?itemName=coco-platform.jest-snippets","archived":false,"fork":false,"pushed_at":"2020-06-15T01:54:41.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T00:29:49.082Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"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/coco-platform.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-06-12T02:50:43.000Z","updated_at":"2020-06-12T09:38:30.000Z","dependencies_parsed_at":"2023-03-11T02:15:24.470Z","dependency_job_id":null,"html_url":"https://github.com/coco-platform/vscode-jest-snippets","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/coco-platform/vscode-jest-snippets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coco-platform%2Fvscode-jest-snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coco-platform%2Fvscode-jest-snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coco-platform%2Fvscode-jest-snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coco-platform%2Fvscode-jest-snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coco-platform","download_url":"https://codeload.github.com/coco-platform/vscode-jest-snippets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coco-platform%2Fvscode-jest-snippets/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260194786,"owners_count":22972639,"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":"2024-11-15T22:31:44.338Z","updated_at":"2026-01-31T13:02:07.065Z","avatar_url":"https://github.com/coco-platform.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# vscode-jest-snippets\n\n[Jest](https://facebook.github.io/jest) snippets extension for [Visual Studio Code](https://code.visualstudio.com/).\n\n## Snippets\n\nBelow is a list of all available snippets and the triggers of each one. The **→** means the `TAB` key.\n\n### Globals\n\n|   Trigger | Content            |\n| --------: | ------------------ |\n|   `desc→` | describe           |\n|  `desco→` | describe.only      |\n|  `descs→` | describe.skip      |\n|  `desce→` | describe.each      |\n| `descoe→` | describe.only.each |\n| `descse→` | describe.skip.each |\n|     `ae→` | afterEach          |\n|     `aa→` | afterAll           |\n|     `be→` | beforeEach         |\n|     `ba→` | beforeAll          |\n\n### Tests\n\n|   Trigger | Content              |\n| --------: | -------------------- |\n|     `it→` | it                   |\n|    `ito→` | it.only              |\n|    `its→` | it.skip              |\n|    `itt→` | it.todo              |\n|    `ite→` | it.each              |\n|    `ita→` | it(..., async ...)   |\n|   `test→` | test                 |\n|  `testo→` | test.only            |\n|  `tests→` | test.skip            |\n|  `testt→` | test.todo            |\n|  `teste→` | test.each            |\n| `testoe→` | test.only.each       |\n| `testse→` | test.skip.each       |\n| `testet→` | test.each (table)    |\n|  `testa→` | test(..., async ...) |\n\n### Expect\n\n|   Trigger | Content                  |\n| --------: | ------------------------ |\n|    `exp→` | expect                   |\n|   `expa→` | expect.anything          |\n| `expact→` | expect.any               |\n|   `expe→` | expect.extend            |\n|  `expea→` | expect.extend async      |\n|  `expac→` | expect.arrayContaining   |\n|  `expoc→` | expect.objectContaining  |\n|  `expsc→` | expect.stringContaining  |\n|  `expsm→` | expect.stringMatching    |\n|   `expr→` | expect.resolves          |\n|  `exprj→` | expect.rejects           |\n|  `expas→` | expect.assertions(count) |\n|  `expha→` | expect.hasAssertions()   |\n\n### Expect Matcher\n\n|   Trigger | Content                            |\n| --------: | ---------------------------------- |\n|     `tb→` | toBe                               |\n|   `tbct→` | toBeCloseTo                        |\n|    `tbd→` | toBeDefined                        |\n|    `tbf→` | toBeFalsy                          |\n|   `tbgt→` | toBeGreaterThan                    |\n|  `tbgte→` | toBeGreaterThanOrEqual             |\n|    `tbi→` | toBeInstanceOf                     |\n|   `tblt→` | toBeLessThan                       |\n|  `tblte→` | toBeLessThanOrEqual                |\n|    `tbn→` | toBeNull                           |\n|    `tbt→` | toBeTruthy                         |\n|    `tbu→` | toBeUndefined                      |\n|     `tc→` | toContain                          |\n|    `tce→` | toContainEqual                     |\n|     `te→` | toEqual                            |\n|    `tse→` | toStrictEqual                      |\n|   `thbc→` | toHaveBeenCalled                   |\n|  `thbct→` | toHaveBeenCalledTimes              |\n|  `thbcw→` | toHaveBeenCalledWith               |\n| `thblcw→` | toHaveBeenLastCalledWith           |\n|    `thr→` | toHaveReturned                     |\n|   `thrt→` | toHaveReturnedTimes                |\n|   `thrw→` | toHaveReturnedWith                 |\n|  `thlrw→` | toHaveLastReturnedWith             |\n|  `thnrw→` | toHaveNthReturnedWith              |\n|    `thl→` | toHaveLength                       |\n|    `thp→` | toHaveProperty                     |\n|     `tm→` | toMatch                            |\n|    `tmo→` | toMatchObject                      |\n|    `tms→` | toMatchSnapshot                    |\n|   `tmis→` | toMatchInlineSnapshot              |\n|     `tt→` | toThrow                            |\n|    `tte→` | toThrowError                       |\n|  `ttems→` | toThrowErrorMatchingSnapshot       |\n| `ttemis→` | toThrowErrorMatchingInlineSnapshot |\n\n### Templates\n\n| Trigger | Content |\n| ------: | ------- |\n|  `jfn→` | jest.fn |\n\n## Changelog\n\n### [1.1.0] - 2020-06-12\n\n- `expa→` --\u003e `expect.anything`\n- `expact→` --\u003e `expect.any`\n- `expe→` --\u003e `expect.extend`\n- `expea→` --\u003e `expect.extend async`\n- `expac→` --\u003e `expect.arrayContaining`\n- `expoc→` --\u003e `expect.objectContaining`\n- `expsc→` --\u003e `expect.stringContaining`\n- `expsm→` --\u003e `expect.stringMatching`\n\n### [1.0.0] - 2020-06012\n\n- `descoe→` --\u003e `describe.only.each`\n- `descse→` --\u003e `describe.skip.each`\n- `testoe→` --\u003e `test.only.each`\n- `testse→` --\u003e `test.skip.each`\n- `thr→` --\u003e `toHaveReturned`\n- `thrt→` --\u003e `toHaveReturnedTimes`\n- `thrw→` --\u003e `toHaveReturnedWith`\n- `thlrw→` --\u003e `toHaveLastReturnedWith`\n- `thnrw→` --\u003e `toHaveNthReturnedWith`\n\n## Settingse\n\nThe `editor.snippetSuggestions` setting in vscode `settings.json` will show snippets on top of the suggestion list.\n\n```json\n\"editor.snippetSuggestions\": \"top\"\n```\n\n## Credits\n\n- Thanks to [andys8](https://github.com/andys8/vscode-jest-snippets) for snippet base\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoco-platform%2Fvscode-jest-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoco-platform%2Fvscode-jest-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoco-platform%2Fvscode-jest-snippets/lists"}