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

Nobody has claimed this yet.

Assessment

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

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.

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

Dominant language
JavaScript
Stars
12
Forks
5
Avg merge
2d 16h
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from influxdata/iot-api-js

All issues in influxdata/iot-api-js

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.