Skip to content

Glossary: Angular Basics

describe / it / expect

Also written: describe, it, expect, toBe, toEqual

The functions used to write tests: `describe` groups tests, `it` defines one test, and `expect(x).toBe(y)` checks that a value is what you expect. `ng test` provides them without an import.

Where the book teaches it

Related terms

Vitestng test