Our next round of tests will cover rendering elements to the DOM. Aurelia provides a set of helper classes, similar to Jamine's setFixture functionality, in order to attach HTML to the DOM, and render views using these temporary DOM elements. Our test suite, therefore, needs to include the following two import statements at the top of the file:
import {StageComponent} from 'aurelia-testing'; import {bootstrap} from 'aurelia-bootstrapper';
These import statements include a class named StageComponent, and a function named bootstrap. The StageComponent class is the helper utility that Aurelia provides in order to house an instance of our item under test, which in our case is an instance of the App class. The bootstrap function ...