jest-ts-auto-mock icon indicating copy to clipboard operation
jest-ts-auto-mock copied to clipboard

Example does not work

Open unlight opened this issue 4 years ago • 8 comments

git clone https://github.com/Typescript-TDD/jest-ts-auto-mock
cd jest-ts-auto-mock
npm i
npm run build
cd examples\ts-jest-ttypescript
npm i
npm t
 FAIL  reuse/2.test.ts
  ● Test suite failed to run

    TypeError: Cannot read property 'map' of undefined

      at transformBundle (node_modules/typescript/lib/typescript.js:77498:53)

 FAIL  reuse/1.test.ts
  ● Test suite failed to run

    TypeError: Cannot read property 'map' of undefined

      at transformBundle (node_modules/typescript/lib/typescript.js:77498:53)

 FAIL  ./basic.test.ts
  ● Test suite failed to run

    TypeError: Cannot read property 'map' of undefined

      at transformBundle (node_modules/typescript/lib/typescript.js:77498:53)

unlight avatar Jan 30 '21 23:01 unlight

Oh no!! I will have a look :) thanks for reporting the issue

uittorio avatar Jan 31 '21 13:01 uittorio

I've created a new version 2.0.0 @unlight

uittorio avatar Feb 06 '21 15:02 uittorio

@uittorio Does it work for you? It doesn't for me, still same errors.

unlight avatar Feb 06 '21 17:02 unlight

Tests are working on the pipeline. Could try to delete the node modules in both folders ( main and examples) and try again?

uittorio avatar Feb 06 '21 17:02 uittorio

I did that

unlight avatar Feb 06 '21 17:02 unlight

Which version of node are you using?

uittorio avatar Feb 06 '21 18:02 uittorio

You are right, I've just reproduced it.

uittorio avatar Feb 06 '21 18:02 uittorio

So, I am not sure what is going on. I have tried to re install the modules again. I've checked and it was using an old version typescript.

uittorio avatar Feb 06 '21 18:02 uittorio