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": "jest""jest":"preset": "jest-exponent" -
Create a
__tests__
directory anywhere you like and aExample-test.js
file inside of it, and add this code:; -
Run
npm test
and it should pass