Skip to content

Commit 51ded1f

Browse files
committed
test: add WeakRef TypeScript lib
1 parent 5b45ef1 commit 51ded1f

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

test/unit/socket-close-test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/// <reference lib="ESNext" />
2-
31
import * as zmq from "../../src"
42

53
import {assert} from "chai"

test/unit/socket-send-receive-test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/// <reference lib="ESNext" />
2-
31
import * as zmq from "../../src"
42

53
import {assert} from "chai"

tsconfig.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
"target": "es2020",
66
"declaration": true,
77
"module": "commonjs",
8-
"types": ["node", "mocha"],
8+
"types": [
9+
"node",
10+
"mocha"
11+
],
912
"strictPropertyInitialization": false, // TODO
1013
"strict": true,
1114
"strictNullChecks": true,
@@ -18,6 +21,10 @@
1821
"incremental": true,
1922
"sourceMap": true,
2023
"esModuleInterop": true,
21-
"lib": ["ES2020", "dom"]
24+
"lib": [
25+
"ES2020",
26+
// only used in tests
27+
"ES2021.WeakRef"
28+
]
2229
}
2330
}

0 commit comments

Comments
 (0)