Skip to content

Commit e4b2462

Browse files
committed
test: fix mocha ts-node failing
1 parent d448f41 commit e4b2462

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

test/tsconfig.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
"extends": "../tsconfig.json",
33
"include": ["**/*.ts"],
44
"compilerOptions": {
5-
"skipLibCheck": true,
6-
"lib": [
7-
"ES2020",
8-
// only used in tests
9-
"ES2021.WeakRef"
10-
]
5+
"skipLibCheck": true
116
}
127
}

tsconfig.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
"incremental": true,
2020
"sourceMap": true,
2121
"esModuleInterop": true,
22-
"lib": ["ES2020"]
22+
"lib": [
23+
"ES2020",
24+
// only used in tests
25+
"ES2021.WeakRef"
26+
]
2327
}
2428
}

0 commit comments

Comments
 (0)