O'Reilly logo

Hands-On Full Stack Web Development with Aurelia by Erikson Haziz Murrugarra Sifuentes, Diego Jose Arguelles Rojas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Testing our components

Testing is one of the most important steps when you develop software applications. At this point, we are ready to start creating components, defining binding behaviors, and configuring our routes. All is okay, but how do we ensure that our components work as expected? We need to test each component before marking it as complete and ready for QA/Production environment.

With Aurelia's component tester, you'll be able to test your component in an isolated way, like on a mini Aurelia application. What to do when testing a component? Evaluate the expected data, and assert a response to data binding and behavior through the life cycle.

First of all, we need to install the aurelia-testing package:

 npm install aurelia-testing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required