Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: replace mocha with node:test #1697

Merged
merged 27 commits into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
05a939d
refactor: replace `mocha` with `node:test`
robertsLando Sep 18, 2023
98eae22
fix: add timeout to ci
robertsLando Sep 18, 2023
cf8029e
fix: test run
robertsLando Sep 19, 2023
e5461a0
fix: remove debugger and add missing `after`
robertsLando Sep 19, 2023
6656ad6
Merge branch 'main' of https://github.com/mqttjs/MQTT.js into refacto…
robertsLando Sep 19, 2023
5e45e8a
fix: ts build
robertsLando Sep 19, 2023
0fe0b09
chore: drop nodejs 16 support
robertsLando Sep 19, 2023
993af18
fix: leaked handles
robertsLando Sep 19, 2023
df68243
fix: revert abstract test changes
robertsLando Sep 19, 2023
62ba020
chore: update engines
robertsLando Sep 19, 2023
86a70f0
chore: increese timeout minutes
robertsLando Sep 19, 2023
a2b696b
chore: use esbuild-register
robertsLando Sep 19, 2023
26dc2e8
fix: increese concurrency
robertsLando Sep 19, 2023
118b4a9
fix: try to use max concurrency
robertsLando Sep 19, 2023
15a2a40
fix: store tests are failing
robertsLando Sep 19, 2023
0a16336
fix: wrong ci
robertsLando Sep 19, 2023
5f79076
fix: remove useless console.log
robertsLando Sep 19, 2023
f8a728a
fix: message id provider tests and websocket
robertsLando Sep 19, 2023
e01ada0
fix: pass all tests
robertsLando Sep 19, 2023
0a5d126
fix: try running tests using `--test`
robertsLando Sep 19, 2023
588c914
fix: switch to spec
robertsLando Sep 19, 2023
bd47177
fix: exit code on error
robertsLando Sep 19, 2023
e2086b5
fix: better summary
robertsLando Sep 19, 2023
d234117
fix: only consider fail test for exit code 1
robertsLando Sep 19, 2023
ac86684
fix: use `on` instead of `once`
robertsLando Sep 19, 2023
a83d616
fix: pretty print errors and duration
robertsLando Sep 20, 2023
cf882c3
fix: spacing
robertsLando Sep 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ module.exports = {
commonjs: true,
es2021: true,
node: true,
mocha: true,
},
extends: [
'airbnb-base',
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/mqttjs-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
node-version: [18.x, 20.x]
fail-fast: false

steps:
Expand All @@ -38,7 +38,8 @@ jobs:
npm run lint

- name: Test NodeJS
run: npm run test:node # npx mocha test/unique_message_id_provider_client.js --exit
run: npm run test:node
timeout-minutes: 5
env:
CI: true
DEBUG: "${{ runner.debug == '1' && 'mqttjs:*' || '' }}"
Expand Down
10 changes: 0 additions & 10 deletions .mocharc.js

This file was deleted.

Loading