MCPcopy Index your code
hub / github.com/andys8/vscode-jest-snippets

github.com/andys8/vscode-jest-snippets @v2.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.0.1 ↗ · + Follow
1 symbols 2 edges 1 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

vscode-jest-snippets

Version Node CI

Jest snippets extension for Visual Studio Code.

Snippets

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

Globals

Trigger Content
desc→ describe
desco→ describe.only
descs→ describe.skip
desce→ describe.each
ae→ afterEach
aea→ afterEach(async ...)
aa→ afterAll
aaa→ afterAll(async ...)
be→ beforeEach
bea→ beforeEach(async ...)
ba→ beforeAll
baa→ beforeAll(async ...)

Tests

Trigger Content
it→ it
ito→ it.only
its→ it.skip
itt→ it.todo
ite→ it.each
ita→ it(..., async ...)
test→ test
testo→ test.only
tests→ test.skip
testt→ test.todo
teste→ test.each
testet→ test.each (table)
testa→ test(..., async ...)

Expect

Trigger Content
exp→ expect
expr→ expect.resolves
exprj→ expect.rejects
expas→ expect.assertions(count)
expha→ expect.hasAssertions()
tb→ toBe
tbct→ toBeCloseTo
tbd→ toBeDefined
tbf→ toBeFalsy
tbgt→ toBeGreaterThan
tbgte→ toBeGreaterThanOrEqual
tbi→ toBeInstanceOf
tblt→ toBeLessThan
tblte→ toBeLessThanOrEqual
tbn→ toBeNull
tbt→ toBeTruthy
tbu→ toBeUndefined
tc→ toContain
tce→ toContainEqual
te→ toEqual
tse→ toStrictEqual
thbc→ toHaveBeenCalled
thbct→ toHaveBeenCalledTimes
thbcw→ toHaveBeenCalledWith
thblcw→ toHaveBeenLastCalledWith
thbncw→ toHaveBeenNthCalledWith
thl→ toHaveLength
thlrw→ toHaveLastReturnedWith
thnrw→ toHaveNthReturnedWith
thp→ toHaveProperty
thr→ toHaveReturned
thrt→ toHaveReturnedTimes
thrw→ toHaveReturnedWith
tm→ toMatch
tmo→ toMatchObject
tms→ toMatchSnapshot
tmis→ toMatchInlineSnapshot
tt→ toThrow
ttems→ toThrowErrorMatchingSnapshot
ttemis→ toThrowErrorMatchingInlineSnapshot

Templates

Trigger Content
cut→ test a class under test
jfn→ jest.fn
jso→ jest.spyOn

Settings

The editor.snippetSuggestions setting in vscode settings.json will show snippets on top of the suggestion list.

"editor.snippetSuggestions": "top"

Credits

Core symbols most depended-on inside this repo

Shape

Function 1

Languages

TypeScript100%

Modules by API surface

snippets/snippets.test.js1 symbols

For agents

$ claude mcp add vscode-jest-snippets \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page