Skip to content

Angular Testing Overview

Aakash Goplani edited this page May 3, 2020 · 4 revisions

Topics Covered


Follow these principles:

  1. Arrange: all necessary preconditions and inputs {set initial state}
  2. Act: on object or class under test {change initial state}
  3. Assert: that the expected test results have occurred {check new state is correct}

Ignore given test case: append it with x

xdescribe('', () => {
   xit('', () => {});
});

Run only single test case: append it with f

fdescribe('', () => {
   fit('', () => {});
});
Clone this wiki locally