Blog

Extend Karma to get better code coverage and test reports for your SharePoint Framework solutions

In one of the previous posts I showed that since SharePoint Framework version 1.2.0, code coverage reports were added. When you run the **gulp test** task, it will execute the tests, and generate a code coverage report which you can find under the **temp/coverage/js** project folder. > **Read more** about this in the following article: [SharePoint Framework code coverage reports for

Read article

How to load scripts that are required for your item display template rendering

Based on the number of questions I receive in my mailbox, I can see that display templates are not yet forgotten. A long time ago, I wrote about how to correctly include scripts into your display templates. > **Read more**: [Correctly including scripts into your display templates](https://www.eliostruyf.com/correctly-including-scripts-display-templates/) The main issue when using the default functions (for example $includeScript) to include scripts into

Read article

SharePoint Framework code coverage reports for unit-tests

A while ago I wrote an article about writing unit tests for your SharePoint Framework components. One of the missing things was a code coverage report to check how well you unit-test your codebase. > **Read more**: [Writing unit-tests for your SharePoint Framework components](https://www.eliostruyf.com/writing-unit-test-for-your-sharepoint-framework-components/) Apparently, with the v1.2.0 of SharePoint Framework they added a tool called [**Istanbul**](https://istanbul.js.org/) which can generate such reports.

Read article

Elio Struyf

Solutions Architect & Developer Expert

Loading...

Let's build together

Manage content in VS Code

Present from VS Code

Engage with your audience throughout the event lifecycle