When using Jasmine for unit testing in Angular, what function is used to create a group of related tests?
- afterEach()
- beforeAll()
- describe()
- it()
In Jasmine, the describe() function is used to create a group of related tests, which helps organize and structure your test suite.
Loading...
Related Quiz
- How can you ensure that a service provides a single, shared instance across an entire Angular application?
- Which core building block of Angular is responsible for defining views, data, and logic?
- How would you implement cross-field validation in a reactive form?
- How do you access a specific form control within a Form Array in Angular?
- How can you create a custom attribute directive in Angular?