Skip to content

nicosantangelo/sublime-jest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Sublime Jest

Sublime Text helpers for Jest.

For now, the package consists on snippets only, any ideas or feature requests, let me know, or add a pull request!

Snippet example

###trigger

snippet

All snippets are also available in CoffeeScript.

Snippets

###amf

jest.autoMockOff();

###amo

jest.autoMockOn();

###cat

jest.clearAllTimers();

###dm

jest.dontMock("${1:module}");${0}

###gmfm

jest.genMockFromModule(${1:moduleObj});${0}

###gmf

jest.getMockFunction();

###jm

jest.mock("${1:moduleName}");${0}

###rat

jest.runAllTicks();

###ratr

jest.runAllTimers();

###ropt

jest.runOnlyPendingTimers();

###sm

jest.setMock("${1:moduleName}", ${2:moduleExports});${0}

Installation

Manual

You can clone the repo in your /Packages (Preferences -> Browse Packages...) folder and start using/hacking it.

cd ~/path/to/Packages
git clone https://github.com/NicoSantangelo/sublime-jest.git SublimeJest

About

Sublime Text helpers for Jest

Resources

License

Stars

Watchers

Forks

Packages

No packages published