Jest TypeError: Path must be a string. Received undefined

后端 未结 7 1730
小蘑菇
小蘑菇 2020-12-10 10:48

Below settings for my package.json

If I run from command line npm test all jest test cases are executed properly. In case I use directly the command

7条回答
  •  无人及你
    2020-12-10 11:05

    I solved this issue using:

    remove node_modules remove package-lock.json

    remove dev dependence from package.json of jest npm remove jest --save-dev.

    npm cache clean

    then run command npm install

    then install npm install jest@latest --save-dev

    this works for me

提交回复
热议问题