Skip to content

Commit 46d129d

Browse files
authored
Merge pull request #628 from zeromq/test
2 parents 7b365d7 + 69f9ebd commit 46d129d

File tree

11 files changed

+153
-932
lines changed

11 files changed

+153
-932
lines changed

.eslintrc

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
{
2-
"plugins": [
3-
"prettier"
4-
],
5-
"extends": [
6-
"eslint-config-atomic"
7-
],
2+
"plugins": ["prettier"],
3+
"extends": ["eslint-config-atomic"],
84
"rules": {
9-
"@typescript-eslint/quotes": [
10-
"error",
11-
"double"
12-
],
5+
"@typescript-eslint/quotes": ["error", "double"],
136
"require-await": "off",
147
"@typescript-eslint/strict-boolean-expressions": "off",
158
"@typescript-eslint/no-explicit-any": "off",

.mocharc.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,10 @@
22
* @type {import('mocha').MochaOptions}
33
*/
44
const config = {
5-
require: ["ts-node/register", "rocha"],
6-
spec: [
7-
"test/unit/*-test.ts",
8-
"test/unit/compat/*-test.js",
9-
],
5+
require: ["ts-node/register"],
6+
spec: ["test/unit/*-test.ts", "test/unit/compat/*-test.js"],
107
"expose-gc": true,
118
"v8-expose-gc": true,
12-
"experimental-worker": true,
13-
recursive: true,
149
exit: true,
1510
parallel: true,
1611
}

.vscode/extensions.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"recommendations": [
3-
"hbenl.vscode-mocha-test-adapter",
4-
"hbenl.vscode-test-explorer",
5-
"llvm-vs-code-extensions.vscode-clangd",
6-
"xadillax.gyp",
7-
"dbaeumer.vscode-eslint",
8-
"esbenp.prettier-vscode"
9-
]
2+
"recommendations": [
3+
"hbenl.vscode-mocha-test-adapter",
4+
"hbenl.vscode-test-explorer",
5+
"llvm-vs-code-extensions.vscode-clangd",
6+
"xadillax.gyp",
7+
"dbaeumer.vscode-eslint",
8+
"esbenp.prettier-vscode"
9+
]
1010
}

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"mochaExplorer.parallel": true,
3-
"mochaExplorer.globImplementation": "vscode"
2+
"mochaExplorer.parallel": true,
3+
"mochaExplorer.globImplementation": "vscode"
44
}

package.json

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "Next-generation ZeroMQ bindings for Node.js",
55
"main": "lib/index.js",
66
"types": "lib/index.d.ts",
7+
"type": "commonjs",
78
"typesVersions": {
89
">=3.7": {
910
"lib/*": [
@@ -26,38 +27,36 @@
2627
},
2728
"devDependencies": {
2829
"@types/chai": "^4.3.16",
29-
"@types/fs-extra": "^9.0.13",
30+
"@types/fs-extra": "^11.0.4",
3031
"@types/mocha": "^10.0.6",
31-
"@types/node": "^18.19.34",
32+
"@types/node": "^20.14.3",
3233
"@types/proper-lockfile": "^4.1.4",
3334
"@types/semver": "^7.5.8",
3435
"@types/shelljs": "^0.8.15",
35-
"@types/which": "^2.0.2",
36+
"@types/which": "^3.0.4",
3637
"benchmark": "^2.1.4",
3738
"chai": "^4.4.1",
3839
"deasync": "^0.1.30",
3940
"downlevel-dts": "^0.11.0",
40-
"electron-mocha": "^11.0.2",
41+
"electron-mocha": "^12.3.0",
4142
"eslint": "^8",
4243
"eslint-config-atomic": "^1.22.0",
43-
"eslint-plugin-prettier": "^4.2.1",
44+
"eslint-plugin-prettier": "^5.1.3",
4445
"execa": "^9.2.0",
45-
"fs-extra": "^10.1.0",
46-
"gh-pages": "^4.0.0",
46+
"fs-extra": "^11.2.0",
47+
"gh-pages": "^6.1.1",
4748
"minify-all-cli": "^1.0.13",
4849
"mocha": "^10.4.0",
4950
"node-gyp": "^10.1.0",
5051
"npm-run-all2": "^6.2.0",
5152
"prebuildify": "^6.0.1",
52-
"prettier": "^2.8.8",
53+
"prettier": "^3.3.2",
5354
"proper-lockfile": "^4.1.2",
54-
"random-words": "^1",
55-
"rocha": "^2.5.10",
5655
"semver": "^7.6.2",
5756
"ts-node": "~10.9.2",
5857
"typedoc": "^0.25.13",
5958
"typescript": "~4.9.5",
60-
"which": "^3.0.1"
59+
"which": "^4.0.0"
6160
},
6261
"pnpm": {
6362
"overrides": {

0 commit comments

Comments
 (0)