﻿---
title: Testing
description: The files in this directory are used for testing purposes. Do not edit these files unless you are working on tests. test this is a list. 
url: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/2842/testing
---

# Testing
The files in this directory are used for testing purposes. Do not edit these files unless you are working on tests.
test

###### 

```json
{
  "key": "value"
}
```

```json
{
  "key": "value"
}
```

1. this is a list
   ```json
      {
        "key": "value"
      }
   ```
   1. this is a sub-list
   ```json
   {
     "key": "value"
   }
   ```

```json

{"system.cpu.idle.pct": 0.908}

{"system.cpu.idle.pct": 0.105}
```

```json

{
  "max_docs": 10,
  "source": {
    "index": "my-index-000001",
    "query": {
      "function_score" : {
        "random_score" : {},
        "min_score" : 0.9
      }
    }
  },
  "dest": {
    "index": "my-new-index-000001"
  }
}
```

```json
```

```json

{
  "mappings": {
    "enabled": false <1>
  }
}


{
  "user_id": "kimchy",
  "session_data": {
    "arbitrary_object": {
      "some_array": [ "foo", "bar", { "baz": 2 } ]
    }
  },
  "last_updated": "2015-12-06T18:20:22"
}
```

```javascript
const foo = "bar"; 
```

<applies-switch>
  <applies-item title="stack:" applies-to="Elastic Stack: Generally available">
    Content for Stack
  </applies-item>

  <applies-item title="serverless:" applies-to="Elastic Cloud Serverless: Generally available">
    Content for Serverless
  </applies-item>
</applies-switch>

<applies-switch>
  <applies-item title="stack:" applies-to="Elastic Stack: Generally available">
    Content for Stack
  </applies-item>

  <applies-item title="serverless:" applies-to="Elastic Cloud Serverless: Generally available">
    Content for Serverless
  </applies-item>
</applies-switch>