0.2.1 • Published 9 years ago
jest-exponent v0.2.1
jest-exponent
A Jest preset to painlessly test your Exponent apps.
Installation
yarn add jest-exponent --devornpm i jest-exponent --save-devAdd 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.jsfile inside of it, and add this code:it('works', () => { expect(1).toBe(1); });Run
npm testand it should pass