IMPORTANT: All mappings start with <leader>j
. All of the following mapping
descriptions omit it. Read every mapping as: <leader>j{mapping}
.
Mappings:
- Alternation mappings:
- Alternate test:
at
: alternate betweenfilename.*
andfilename.test.*
or (if you already have a__tests__
folder)__tests__/filename.test.*
.vt
: likeat
but opens in a vertical split.ht
: likeat
but opens in a horizontal split.
- Alternate mock:
am
: alternate betweenfilename.*
and__mocks__/filename.*
(and optionally create__mocks__
directory if it doesn't exist).vm
: likeam
but opens in a vertical split.hm
: likeam
but opens in a horizontal split.
- Alternate test:
- Only mappings:
to
: toggle current assertion betweenit
andit.only
.oo
: liketo
but also removes all otheronly
s in buffer if it is togglingonly
on (making the assertion the Only Only).ro
: makes allit.only
assertions simpleit
assertions (Removing Onlies).
- Mocking import mappings:
mi
: mock import of current line in the next line.