AEMCaaS - Code Check
How do we enable JavaScript unit tests for ui.frontend? Can we use JEST? what kind of configurations we need to do to export the coverage.json code?
How do we enable JavaScript unit tests for ui.frontend? Can we use JEST? what kind of configurations we need to do to export the coverage.json code?
For that , you need to modify your frontend build process to instrument your code for coverage.
This can be done by using a preprocessor such as Babel or by modifying your build tool's configuration to include the Istanbul instrumentation plugin.
This will show you a detailed breakdown of the code coverage for your UI Frontend, including which lines of code were executed and which were not.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.