0.2.1 • Published 7 years ago

jest-exponent v0.2.1

Weekly downloads
2
License
MIT
Repository
-
Last release
7 years ago

jest-exponent

A Jest preset to painlessly test your Exponent apps.

Installation

  • yarn add jest-exponent --dev or npm i jest-exponent --save-dev
  • Add the following config to package.json:

    "scripts": {
      "test": "node_modules/jest/bin/jest.js"
    },
    "jest": {
      "preset": "jest-exponent"
    }
  • Create a __tests__ directory anywhere you like and a Example-test.js file inside of it, and add this code:

    it('works', () => {
      expect(1).toBe(1);
    });
  • Run npm test and it should pass

Learning Jest

Read the excellent documentation

0.3.0-beta.0

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.4

7 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago