ReferenceError: describe is not defined in Jest + Typescript

后端 未结 4 1818
灰色年华
灰色年华 2021-01-19 07:44

Simple configuration of Jest with ts-jest produces error \"ReferenceError: describe is not defined\" in runtime. Here minimal example: https://github.com/PFight/jest-ts-desc

4条回答
  •  星月不相逢
    2021-01-19 08:18

    Found the problem. It was next row in jest.config.js:

    testEnvironment: 'node',
    

    Just removed it and error was fixed.

提交回复
热议问题