jest-exponent

0.2.1 • Public • Published

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": "jest"
    },
    "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

/jest-exponent/

    Package Sidebar

    Install

    npm i jest-exponent

    Weekly Downloads

    2

    Version

    0.2.1

    License

    MIT

    Last publish

    Collaborators

    • exponent
    • ide
    • skevy