Skip to content

refactor(tests): replace mocha & chai with node:test#190

Merged
apocas merged 2 commits into
apocas:masterfrom
axel7083:refactor/tests
Jan 13, 2026
Merged

refactor(tests): replace mocha & chai with node:test#190
apocas merged 2 commits into
apocas:masterfrom
axel7083:refactor/tests

Conversation

@axel7083

@axel7083 axel7083 commented Jan 9, 2026

Copy link
Copy Markdown
Contributor

Description

I noticed that the mocha package was a bit outdated (Currently using v10 when v11 exists) same for chai (Currently using v4 when v6 exists).

Those dependencies could be updated, or we could simply use node:test instead. The change is almost seamless, as node:test is mature and cover all the feature used in test/modem_test.js

The small issue is that we need to update the GitHub workflow, I added the permissions (recommended by GitHub security), and made some small changes to overall improve it.

I tried it on my fork (E.g. axel7083#1)

image

The node:test is not available in version < 16, so the version 14.x has been removed from the test matrix and replace with the latest v24. (Node 14 has reached end of life since 16 Feb 2023 (Ref https://endoflife.date/nodejs)

Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
@apocas

apocas commented Jan 13, 2026

Copy link
Copy Markdown
Owner

Good stuff 👍

@apocas apocas merged commit e468bbc into apocas:master Jan 13, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants