{"id":16712041,"url":"https://github.com/andys8/vscode-jest-snippets","last_synced_at":"2025-03-21T20:33:27.457Z","repository":{"id":20184133,"uuid":"89094176","full_name":"andys8/vscode-jest-snippets","owner":"andys8","description":"Jest snippets extension for VS Code","archived":false,"fork":false,"pushed_at":"2023-01-26T16:58:12.000Z","size":988,"stargazers_count":39,"open_issues_count":1,"forks_count":28,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T21:46:37.023Z","etag":null,"topics":["extension","jest","snippets","testing","visual-studio-code","vscode","vscode-extension"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=andys8.jest-snippets","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/andys8.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-04-22T19:30:36.000Z","updated_at":"2023-06-06T07:02:11.000Z","dependencies_parsed_at":"2023-02-17T15:35:21.254Z","dependency_job_id":null,"html_url":"https://github.com/andys8/vscode-jest-snippets","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andys8%2Fvscode-jest-snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andys8%2Fvscode-jest-snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andys8%2Fvscode-jest-snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andys8%2Fvscode-jest-snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andys8","download_url":"https://codeload.github.com/andys8/vscode-jest-snippets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221818752,"owners_count":16885818,"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":["extension","jest","snippets","testing","visual-studio-code","vscode","vscode-extension"],"created_at":"2024-10-12T20:28:08.042Z","updated_at":"2024-10-28T10:48:40.982Z","avatar_url":"https://github.com/andys8.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vscode-jest-snippets\n\n[![Version](https://img.shields.io/visual-studio-marketplace/v/andys8.jest-snippets?label=VS%20Marketplace\u0026logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=andys8.jest-snippets)\n[![Node CI](https://github.com/andys8/vscode-jest-snippets/actions/workflows/test.yaml/badge.svg)](https://github.com/andys8/vscode-jest-snippets/actions/workflows/test.yaml)\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|    `ae→` | afterEach             |\n|    `aa→` | afterAll              |\n|    `be→` | beforeEach            |\n|   `bea→` | beforeEach(async ...) |\n|    `ba→` | beforeAll             |\n|   `baa→` | beforeAll(async ...)  |\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| `testet→` | test.each (table)    |\n|  `testa→` | test(..., async ...) |\n\n### Expect\n\n|   Trigger | Content                            |\n| --------: | ---------------------------------- |\n|    `exp→` | expect                             |\n|   `expr→` | expect.resolves                    |\n|  `exprj→` | expect.rejects                     |\n|  `expas→` | expect.assertions(count)           |\n|  `expha→` | expect.hasAssertions()             |\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|    `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|  `cut→` | test a class under test |\n|  `jfn→` | jest.fn                 |\n\n## Settings\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 [xabikos](https://github.com/xabikos) for [vscode-jasmine](https://github.com/xabikos/vscode-jasmine)\n- Thanks to [martinlechner1](https://github.com/martinlechner1) for initial contributions\n- Thanks to all [contributors](https://github.com/andys8/vscode-jest-snippets/graphs/contributors)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandys8%2Fvscode-jest-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandys8%2Fvscode-jest-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandys8%2Fvscode-jest-snippets/lists"}