Welcome again to my “testing with Jasmine” series. Previously, we discussed how Jasmine uses a behaviour-driven development approach. I announced then that this time I will write something about matchers, test cleanup and preparation, and about disabling and pausing tests.
TL;DR; matchers are kinds of assertions; test preparation can be done using
beforeAll methods and test teardown might be done using
afterAll methods; test suite can be disabled by changing the method
xdescribe; a single test can be paused by changing the
it method to
xit or by removing the function callback or by invoking the
pending method inside the spec callback