Angular Testing Overview - aakash14goplani/FullStack GitHub Wiki

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('', () => {});
});