Skip to content

Commit

Permalink
feat: update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
terret authored Jan 24, 2020
1 parent d95b12b commit bac49b3
Showing 1 changed file with 28 additions and 26 deletions.
54 changes: 28 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,36 +22,38 @@ If you have a custom `jest.config.js` make sure you remove `testEnvironment` pro
### 2. Create `jest-es-config.js`

```js
module.exports = {
esVersion: '7.5.0',
clusterName: 'your-cluster-name',
nodeName: 'your-node-name',
port: 9200,
indexes: [
{
name: 'your-index-name',
body: {
settings: {
number_of_shards: '1',
number_of_replicas: '1'
},
aliases: {
'your-alias': {}
},
mappings: {
dynamic: false,
properties: {
//here you should paste your mapping
//Example:
id: {
type: "keyword"
module.exports = () => {
return {
esVersion: '7.5.0', <-- must be < 7.5.0
clusterName: 'your-cluster-name',
nodeName: 'your-node-name',
port: 9200,
indexes: [
{
name: 'your-index-name',
body: {
settings: {
number_of_shards: '1',
number_of_replicas: '1'
},
aliases: {
'your-alias': {}
},
mappings: {
dynamic: false,
properties: {
//here you should paste your mapping
//Example:
id: {
type: "keyword"
}
}
}
}
}
}
]
};
]
}
}
```


Expand Down

0 comments on commit bac49b3

Please sign in to comment.