-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use expect types without jest types that leads to conflicts with mocha #9209
Comments
Related: #8570 Although that issue was closed, it's not fixed; I'm still seeing the conflict between "expect" and "@types/mocha". Here is a reproduction: https://repl.it/repls/LightgreyMustyAutoexec |
However, the case @cspotcode reports should ideally have worked, as |
sure |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
🐛 Bug Report
I'd like to use
expect
with other test runner like mocha in TypeScript project.However I'm not able to import
expect
types withoutjest
while@types/jest
is conflicting with@types/mocha
.To Reproduce
Steps to reproduce the behavior:
@types/mocha
@types/jest
(looking for expect only types without jest)expect
types with mocha runnerExpected behavior
ideally it should be possible to install @types/expect or import only expect types from @types/jest
envinfo
The text was updated successfully, but these errors were encountered: