Comments (4)
Hi,
I am having the same problem as @railsfactory-vishnuroshan in a node JS project, same configuration, same error. Has somebody solved this error?
Thanks for your help.
from elasticsearch-js-mock.
Hello! Very likely Jest is doing something weird behind the scenes and breaks the client code.
See jestjs/jest#2549.
from elasticsearch-js-mock.
Hi All,
This issue is due to test environment, if you are using --env=jsdom you will get this issue.
Please try to remove this --env=jsdom or use --env=node
from elasticsearch-js-mock.
The solution given by @railsfactory-sivamanikandan worked. I am closing this issue
from elasticsearch-js-mock.
Related Issues (20)
- Ignore deep equal check for params body HOT 1
- Clear mocks HOT 1
- Same request with no data and with data gets the same result even if they don't have same response. HOT 1
- TypeError: Cannot destructure property 'ConfigurationError' of 'errors' as it is undefined. HOT 6
- Mocking a "scroll" search HOT 6
- How to create ResponseErrors in TypeScript HOT 4
- Fails since 7.14.0 HOT 14
- How to mock bulk method HOT 1
- Support for multiple definitions
- how to use with multiple versions ? HOT 2
- Does not work with 8.x version of the client. HOT 1
- elastic mocks timeout when used with jest fake timers
- How to use elastic-mock properly? HOT 4
- Upgrading of elasticsearch-mock form v1.0 to v2.0 HOT 1
- How to simulate a delayed response or error?
- High level API around the http mock
- ProductNotSupportedError for elasticsearch-js-mock >=v0.3.1 <=1.0.0 and @elasticsearch/elasticsearch >7.13.0 <= 7.17.0
- How to seperate mocks from implementation?
- Making assertions about how the mock was used HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elasticsearch-js-mock.