The example extension demonstrates how to contribute a custom widget (i.e. a view or editor) to Eclipse Theia. Furthermore, the template contains an example unit test.
In the running application, open the widget using the menu "View" => "<%= params.extensionPrefix %> Widget" To execute the test, run yarn test