How to use Mocha and Jest with TypeScript without conflicts?

前端 未结 2 1090
挽巷
挽巷 2021-02-20 03:19

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

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-20 04:03

    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

提交回复
热议问题