How to write a Jest configuration file

后端 未结 5 957
我在风中等你
我在风中等你 2021-02-02 07:17

I am trying to pass along a configuration file to Jest in order to run tests only from a given directory.

According to documentation, you can use config.testPathDi

5条回答
  •  迷失自我
    2021-02-02 07:50

    I figured out that the config file is JSON.

    {
      "testPathDirs": ["coredata/src"]
    }
    

    Unfortunately I found nowhere in the documentation a hint about this.

提交回复
热议问题