Angular Testing Cheat Sheet

Our cheat sheet (written by Karsten Sitterberg) grasps the basic principles of Angular testing with different setups: Jasmine/Karma, Jest, Jasmine/Protractor and Cypress.

By signing up to our newsletter, you can download our cheat sheet for FREE.

Table of Contents

  • Whitepaper Content
  • Characteristics
  • Basic test for Angular component
  • Enable snapshot tests
  • Install dependencies
  • Create “src/jestGlobal.ts”
  • Edit files
  • Create mocks/spies with Jasmine
  • Create mocks/spies with Jest
  • Page object (“app.po.ts”)
  • Basic test in Protractor
  • Cypress setup
  • Edit “package.json”
  • Basic test in Cypress

By signing up to our newsletter, you can download our cheat sheet for FREE.