Socket
Socket
Sign inDemoInstall

@shelf/jest-elasticsearch

Package Overview
Dependencies
Maintainers
10
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shelf/jest-elasticsearch - npm Package Compare versions

Comparing version 0.0.4 to 1.0.0

2

jest-es-config.js

@@ -5,3 +5,3 @@ const documentsMapping = require('./index-mapping');

return {
esVersion: '7.5.0',
esVersion: '7.6.0',
clusterName: 'docs',

@@ -8,0 +8,0 @@ nodeName: 'docs',

{
"name": "@shelf/jest-elasticsearch",
"version": "0.0.4",
"version": "1.0.0",
"description": "Run your tests using jest & elasticsearch-local",

@@ -51,12 +51,12 @@ "keywords": [

"dependencies": {
"@shelf/elasticsearch-local": "0.2.0",
"@shelf/elasticsearch-local": "1.0.0",
"cwd": "0.10.0"
},
"devDependencies": {
"@elastic/elasticsearch": "7.5.0",
"@shelf/eslint-config": "0.14.0",
"@elastic/elasticsearch": "7.6.0",
"@shelf/eslint-config": "0.14.2",
"eslint": "6.8.0",
"husky": "4.0.10",
"jest": "24.9.0",
"lint-staged": "10.0.0",
"husky": "4.2.5",
"jest": "25.5.4",
"lint-staged": "10.2.2",
"prettier": "1.19.1"

@@ -63,0 +63,0 @@ },

# jest-elasticsearch
> Jest preset for running tests with local ElasticSearch

@@ -27,3 +28,4 @@

return {
esVersion: '7.5.0', // <== must be < 7.5.0
esVersion: '7.6.0', // ! must be exact version. Ref: https://github.com/elastic/elasticsearch-js .
// don't be shy to fork our code and update deps to correct.
clusterName: 'your-cluster-name',

@@ -49,3 +51,3 @@ nodeName: 'your-node-name',

id: {
type: "keyword"
type: 'keyword'
}

@@ -57,16 +59,12 @@ }

]
}
}
};
};
```
### 4. PROFIT! Write tests
```js
it()
it();
```
## See Also

@@ -77,4 +75,15 @@

````
## Publish
```sh
$ git checkout master
$ yarn version
$ yarn publish
$ git push origin master
````
## License
MIT © [Shelf](https://shelf.io)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc