Faire / mjml-react

React component library to generate the HTML emails on the fly
https://www.npmjs.com/package/@faire/mjml-react
MIT License
387 stars 17 forks source link

Add command to target build (/dist) folder for Jest tests #59

Closed hchiufaire closed 1 year ago

hchiufaire commented 1 year ago

Addresses #57 (missing json file from package) and #58 (tests not targeting /dist build folder)

Note that yarn test still targets dev files as usual

Running yarn test to target dev folder

Screen Shot 2022-11-09 at 10 52 49 AM

Running yarn test-dist to rebuild + target dist folder (before fix)

Screen Shot 2022-11-09 at 10 53 06 AM

Running yarn test-dist to rebuild + target dist folder (after fix)

image