Skip to content

Commit

Permalink
Use node:test for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
charmander committed Dec 13, 2024
1 parent 5cf2da4 commit 192995e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

strategy:
matrix:
node-version: [8.x, 10.x, 12.x, 13.x]
node-version: [16.x, 18.x, 20.x, 22.x, 23.x]

steps:
- uses: actions/checkout@v1
Expand Down
25 changes: 15 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@
"test": "node test"
},
"devDependencies": {
"@charmander/eslint-config-base": "1.1.0",
"@charmander/test": "0.2.0"
"@charmander/eslint-config-base": "1.1.0"
},
"engines": {
"node": ">=8.11.2"
"node": ">=18.0.0 || ^16.17.0"
}
}
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
'use strict';

const assert = require('assert');
const test = require('@charmander/test')(module);
const {test} = require('node:test');

const bcrypt = require('./');
const promises = require('./promises');
Expand Down

0 comments on commit 192995e

Please sign in to comment.