Jestで特定ディレクトリをignore


概要

Jestの対象範囲から特定のディレクトリを対象外としたい

jest.config.js

以下の例はhogedirをignoreしたいとする

module.exports = {
  testPathIgnorePatterns: ["<rootDir>/hogedir/"],
}