In this section, we will explore the unit-testing capabilities of the Aurelia framework. We will write some unit tests for the application that we have written, in order to ensure that the initial state of the application is correct, as well as to ensure that the rendered HTML is correct. These tests will follow the general scenarios that we outlined at the beginning of the chapter.
Aurelia testing
Aurelia test setup
One of the questions that the Aurelia command-line interface asks when setting up a new Aurelia application (au new) is whether or not to configure unit-testing. If we answer yes to this question, then all of the testing configuration files and dependencies are installed automatically. In the interests of time...