Skip to content

Commit ff491d8

Browse files
committed
fix(build): "Cannot find name 'expect'"
ref #352 Before: src/api/Buffer.test.ts:102:9 - error TS2304: Cannot find name 'expect'. ... src/api/Buffer.test.ts:106:5 - error TS2593: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig. ... Found 616 errors in 8 files. After: Found 138 errors in 6 files.
1 parent 93c478d commit ff491d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"target": "es2015",
1818
"skipLibCheck": true,
1919
"forceConsistentCasingInFileNames": true,
20-
"types": ["node"]
20+
"types": ["node", "jest"]
2121
},
2222
"exclude": ["**/node_modules"],
2323
"compileOnSave": false,

0 commit comments

Comments
 (0)