Which jest config option do I use to ignore a particular folder

i have a dist folder i want to ignore

jest config options

not figuring it out

1 Like

testPathIgnorePatterns [array]

Default: ["/node_modules/"]

An array of regexp pattern strings that are matched against all test paths before executing the test. If the test path matches any of the patterns, it will be skipped.

These pattern strings match against the full path. Use the <rootDir> string token to include the path to your project’s root directory to prevent it from accidentally ignoring all of your files in different environments that may have different root directories. Example: ["<rootDir>/build/", "<rootDir>/node_modules/"] .

1 Like