ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Jest

Sublime Text helpers for Jest

Labels snippets

Details

  • 1.0.0
  • github.​com
  • github.​com
  • 11 years ago
  • 16 minutes ago
  • 11 years ago

Installs

  • Total 3K
  • Win 714
  • Mac 2K
  • Linux 610
Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7
Windows 1 0 0 0 1 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

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