INFO

Angular CLI commands – ng test

The command is used to run the unit tests that are defined in the project. You can run the test by the ng test and ng t commands. You should call it per project but as long as you’re in the project directory you can skip that.

I guess that you already remember that the projects in Angular are opened in the 4200 port by default. The tests are different. Once you run the ng t in your CLI

And then you are given a pretty new window (not a tab) with the http://localhost:9876/?id=2710026 address.

It is basically the same stuff that you can see in the CLI but looks cooler, right?

What are the tests? That’s not so obvious when there are multiple files related to tests across the project. But if you use the search to look for tests using their response message you’ll be able to spot them easily.

Voila!

You may also like...