sublime-jest

Created: 2014-05-19 00:15
Updated: 2018-09-19 06:28
License: mit

README.md

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
Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more