Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>JavaScript Unit Test snippetsNew to Visual Studio Code? Get it now.
JavaScript Unit Test snippets

JavaScript Unit Test snippets

iZDT

|
22,361 installs
| (2) | Free
VS Code JavaScript Unit Test snippets
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

JavaScript

VS Code JavaScript Unit Test snippets


This extension contains code snippets for Unit Test use describe in JavaScript for Vs Code editor (supports both JavaScript and TypeScript).

Installation

In order to install an extension you need to launch the Command Pallete (Ctrl + Shift + P or Cmd + Shift + P) and type Extensions. There you have either the option to show the already installed snippets or install new ones.

Snippets

Below is a list of all available snippets and the triggers of each one. The ⇥ means the TAB key.

Import and export

Trigger Content
det→ add describe with it describe('{description}',() => { it('{1}', () => {}) });
deb→ add describe describe('{description}',() => {});
dit→ add it it('{1}',() => {});
ete→ add expect expect({object}).toExist();
ene→ add expect expect({object}).toNotExist()
etb→ add expect expect({object}).toBe({value})
enb→ add expect expect({object}).toNotBe({value})
etq→ add expect expect({object}).toEqual({value})
enq→ add expect expect({object}).toNotEqual({value})
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft