Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Jest API SnippetsNew to Visual Studio Code? Get it now.
Jest API Snippets

Jest API Snippets

Silvio Henrique

|
338 installs
| (0) | Free
Simple Jest API tests snippet generator
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VSCode Jest API Snippets

Javascript Jest snippets extension for Visual Studio Code. API tests development helper.

Snippets

Global

Trigger Content
jDesc describe
jIt it
jTest test
jMock jest.mock
jMockSpy jest.mock and jest.spyOn
jSpy jest.spyOn
jSpyImp jest.spyOn.mockImplementation
jSpyImpOnce jest.spyOn.mockImplementationOnce
jSpyRet jest.spyOn.mockReturnValue
jSpyRetOnce jest.spyOn.mockReturnValueOnce

Async

Trigger Content
jItAsync asynchronous it
jTestAsync asynchronous test

API Helpers

Trigger Content
jReq javascript require template
jMakeSut sut factory function
jSut sut declaration
jApi asynchronous API test template
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft