I\'m trying to install Mocha and Jest with types on one project. We use strict typecheck, so I get errors related to conflicting globals type.
I\'ve tried to create ambi
As of August 2019, this appears to have been fixed on master, but a new version has not been released yet.
In the meantime, I was able to address these errors by adding the following to one of my definitions:
declare module '@jest/types/build/Global' {
interface DescribeBase extends mocha.SuiteFunction {}
interface ItBase extends mocha.TestFunction {}
}
I searched through package lock file to see which dependencies use @types/jest
and found out that in my case I still have ts-jest
in my project which I removed and conflicts disappeared