Unit testing with ES6 capabilities #1533
Labels
issue: feature request
Issue suggesting a new feature
severity: medium
If it breaks the basic use of the product but can be worked around
What is the expected behavior?
Have a fully unit testing environment
After struggling for a while trying to make unit testing work, I finally end up with a configuration that works for me:
npm install --save-dev babel-jest jest-localstorage-mock
If you want to use additional dependencies, like Enzyme and so on, just include them in the previous sentence
test
script inpackage.json
:"test": "jest --watch",
At this moment yo have a fully environment to develop and run your unit tests, with ES6 support and all the Strapi stuff working.
Would be very nice to have something similar to this fully integrated in the library and ready to use. IMHO unit testing is a must have.
The text was updated successfully, but these errors were encountered: