0.2.3 • Published 6 years ago

atom-test-runner-jest v0.2.3

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

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 .
0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.1

6 years ago