atom-test-runner-jest

v0.2.3
Atom Test Runner for Jest
atom jest

atom-test-runner-jest

Use Jest to bring Delightful JavaScript Testing to your Atom packages.

Installation

npm install atom-test-runner-jest jest-preset-atom --save-dev

Usage

Add the following to your package.json:

{
  "name": "my-package",
  "atomTestRunner": "atom-test-runner-jest",
  "jest": {
    "preset": "jest-preset-atom"
  }
}

Write your unit tests in /spec/:

describe("My Delightful Package", () => {
  it("knows about all of Atom's loaded packages", () => {
    const packages = atom.packages.getLoadedPackages();
    expect(packages).toMatchSnapshot();
  })
})

To run your tests run the following in your shell:

atom --test .
npm i atom-test-runner-jest

Metadata

  • ISC
  • Whatever
  • Kepler Sticka-Jones
  • released 5/3/2018

Downloads

Maintainers