You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 22, 2024. It is now read-only.
There seem to be a few issues with using fancy-test in a typescript project that doesn't use mocha/chai:
node_modules/fancy-test/lib/chai.d.ts(1,23): error TS2688: Cannot find type definition file for 'chai'.
node_modules/fancy-test/lib/chai.d.ts(2,30): error TS2503: Cannot find namespace 'Chai'.
node_modules/fancy-test/lib/types.d.ts(1,23): error TS2688: Cannot find type definition file for 'mocha'.
node_modules/fancy-test/lib/types.d.ts(2,24): error TS2307: Cannot find module 'mocha'.
I was able to fix that chai issue with
npm install @types/chai
I think that could work for mocha as well if one is not using a different test framework that declares the same function names. For example, if I run the following
There seem to be a few issues with using fancy-test in a typescript project that doesn't use mocha/chai:
I was able to fix that chai issue with
I think that could work for mocha as well if one is not using a different test framework that declares the same function names. For example, if I run the following
I end up with
I was only able to solve the mocha problem by excluding test files from
tsc
.The text was updated successfully, but these errors were encountered: