jest-exponent
v0.2.1
Published
A [Jest](https://facebook.github.io/jest/) preset to painlessly test your Exponent apps.
Downloads
29
Readme
jest-exponent
A Jest preset to painlessly test your Exponent apps.
Installation
yarn add jest-exponent --dev
ornpm 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 aExample-test.js
file inside of it, and add this code:it('works', () => { expect(1).toBe(1); });
Run
npm test
and it should pass