Skip to content

An elegant set of jest helpers for testing javascript with ease

License

Notifications You must be signed in to change notification settings

remyoudemans/vim-jesture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-jesture

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 between filename.* and filename.test.* or (if you already have a __tests__ folder) __tests__/filename.test.*.
      • vt: like at but opens in a vertical split.
      • ht: like at but opens in a horizontal split.
    • Alternate mock:
      • am: alternate between filename.* and __mocks__/filename.* (and optionally create __mocks__ directory if it doesn't exist).
      • vm: like am but opens in a vertical split.
      • hm: like am but opens in a horizontal split.
  • Only mappings:
    • to: toggle current assertion between it and it.only.
    • oo: like to but also removes all other onlys in buffer if it is toggling only on (making the assertion the Only Only).
    • ro: makes all it.only assertions simple it assertions (Removing Onlies).
  • Mocking import mappings:
    • mi: mock import of current line in the next line.

About

An elegant set of jest helpers for testing javascript with ease

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published