How can I exclude files from Jest watch?

前端 未结 7 1740
眼角桃花
眼角桃花 2021-02-01 12:17

I\'m doing some slightly bizarre stuff using Jest for testing where I\'m writing some stuff to disk. If I use the watch flag in Jest however then I\'m finding (quit

7条回答
  •  感动是毒
    2021-02-01 13:03

    Based on Jest documentation, watchPathIgnorePatterns should be the way you want to go. That works in Jest 23.x.x and later.

    You can add this config to jest.config.js or package.json > jest

提交回复
热议问题