Do you test your JavaScript?
Updated by Lee Hawkins [SSW] 3 years ago. See history
123
<introEmbed
body={<>
The need to build rich web user interfaces is resulting in more and more JavaScript in our applications.
Because JavaScript does not have the safeguards of strong typing and compile-time checking, it is just as important to unit test your JavaScript as your server-side code.
</>}
/>
You can write unit tests for JavaScript using:
- Jest (Recommended)
Jest is recommended since it runs faster than Karma (due to the fact that Karma runs tests in a browser while Jest runs tests in Node).
Categories
Related rules
Need help?
SSW Consulting has over 30 years of experience developing awesome software solutions.