Skip to content

Simple-Tools/VSCode-unitTestSnippet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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})

About

Unit Test Snippet Extension for VS Code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published