A prompt is text supplied to ChatGPT as an instruction or question. Adding the relevant technology, such as Angular, makes generated answers more applicable to the task. section 8.4.1
Use prompts to support Angular unit-testing work:
- Generate arrays of typed mock data, specifying the desired number of objects. section 8.4.1
- Request mock service implementations while specifying Jest, Observables, omitted tests, and non-spy methods. section 8.4.1
Testing prompt
A focused request can name the component, require Jest and the Angular Testing Library, and provide the component code as input. Review the generated result rather than treating it as deterministic: repeated prompts may produce different answers because ChatGPT is nondeterministic. section 8.4.1

















































