influxdata / influxdata/iot-api-js

This section instructs starting InfluxDB 3 before `yarn test`, but `__tests__/api.test.js` mocks `../lib/influxdb` and doesn’t require a live database. Update guidance to reflect that unit tests run without InfluxDB, and optionally document a separate integration test workflow if needed.

Open Beginner friendly
#36 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12
Forks
5
Avg merge
2d 16h
Merged PRs (30d)
2

Description

This section instructs starting InfluxDB 3 before `yarn test`, but `__tests__/api.test.js` mocks `../lib/influxdb` and doesn’t require a live database. Update guidance to reflect that unit tests run without InfluxDB, and optionally document a separate integration test workflow if needed.

_Originally posted by @Copilot in https://github.com/influxdata/iot-api-js/pull/29#discussion_r2789216087_

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the documentation section that precedes `yarn test`, then read `__tests__/api.test.js` to confirm the InfluxDB mock. Update the guidance so unit tests do not require a live InfluxDB instance; if an integration workflow is documented, keep it separate and clearly identify its requirements.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.