I'm trying to setup unit testing and e2e testing for my Vue 3 project. For Unit test I use Jest and for e2e test I use Nightwatch. I'm confronting this below problem after installed both dependencies: " node_modules/@types/jest/index.d.ts:45:15 - error TS2451: Cannot redeclare block-scoped variable 'expect'.
45 declare const expect: jest.Expect; ~~~~~~
node_modules/@types/nightwatch/globals.d.ts:11:11 11 const expect: typeof chaiExpect; ~~~~~~ 'expect' was also declared here.
node_modules/@types/nightwatch/globals.d.ts:11:11 - error TS2451: Cannot redeclare block-scoped variable 'expect'.
11 const expect: typeof chaiExpect; ~~~~~~
node_modules/@types/jest/index.d.ts:45:15 45 declare const expect: jest.Expect; ~~~~~~ 'expect' was also declared here.
Found 2 errors in 2 files.
Errors Files 1 node_modules/@types/jest/index.d.ts:45 1 node_modules/@types/nightwatch/globals.d.ts:11"
So far I have tried this solution to override the node module's type definition: https://medium.com/@elenasufieva/handling-type-declarations-clash-in-typescript-b05b10723f47
but it didn't work.