Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

VS JavaScript Test Syntax Snippets

This extension contains common JavaScript testing syntax snippets used by Andrew Smith.

Installation

In order to install an extension you need to launch the Command Palette (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.

Supported Languages (file extensions)

  • JavaScript (.js)
  • TypeScript (.ts)
  • JavaScript React (.jsx)
  • TypeScript React (.tsx)

Snippets

before (tstba)

before(() => {
	$1
});$0

beforeEach (tstbe)

beforeEach(() => {
	$1
});

$0

after (tstaa)

after(() => {
	$1
});$0

afterEach (tstae)

afterEach(() => {
	$1
});$0

describe (tstdesc)

describe('$1', () => {
	$2
});$0

context (tstcon)

context('$1', () => {
	$0
});

it (tstit)

it('$1', () => {
	$0
});

suite (ste)

suite('$1', () => {
	$2
});$0

suiteSetup (steup)

suiteSetup(() => {
	$1
});$0

setup (tstup)

setup(() => {
	$1
});$0

suiteTeardown (stedown)

suiteTeardown(() => {
	$1
});$0

teardown (tstdown)

teardown(() => {
	$1
});$0

test (tst)

test('$1', () => {
	$2
});