# How can I make my tests more readable?

```javascript
// We use nested describe blocks to make the intent of each test clearer

describe('the Array object', () => {

  describe('the push method', () => {
    it('should add pushed item onto array', () => {
      const array = []
      array.push(1)
      expect(array).toEqual([1])
    })
  })

  describe('the pop method', () => {
    it('should remove the last item from the array', () => {
      const array = [1, 2, 3]
      array.pop()
      expect(array).toEqual([1, 2])
    })
  })

})
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://asad-razvi.gitbook.io/jest-enzyme-recipes/architecture/how-can-i-make-my-tests-more-readable.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
