Is there influxdb mockserver/mockclient for nodejs

Hi ,

I want t mock request /response of influxdb for testing.
So I want mockserver/mockclient of influxdb for nodejs.
If anybody know please let me know.

Reards,
Abhay

Hi @Abhay

is this what you are looking for ?

mocking influxDb

best regards

Thanks for your reply.
I went through this link before.

but as shown in link
const { expect } = require(‘chai’);
const { InfluxDB } = require(‘influx’);
const sinon = require(‘sinon’);

const myMockDb = sinon.createStubInstance(InfluxDB);
doTheThing(myMockDb);
expect(myMockDb.createDatabase).to.have.been.calledWith(‘some_db’);

My question is that is myMockDb reponse similar for every request as influxdb.
Actually I want to create rest client of influxdb in nodejs to test request response of influxdb locally.

Regards,
Abhay