Add a passWithNoTests boolean support in the configuration file, to have the same effect as the --passWithNoTests CLI flag.
We currently use a shared configuration file across our organization, so that every repo running Jest will have the same default configuration (we do the same for Prettier, TSLint, Webpack, etc.). This ensures consistency, avoids surprises, and lets our teams have a sort of internal "zero conf" set up with the preferences/settings of the engineering organization.
This works really well with Jest, except we are now adding --passWithNoTests to all our new repos, where a configuration file equivalent would let us do it once.
In jest.config.js (if using the JS format):
module.exports = {
preset: 'ts-jest',
moduleFileExtensions: ['ts', 'tsx', 'js'],
globals: { 'ts-jest': { tsConfig: 'tsconfig.json' } },
testMatch: ['**/test/**/*.test.(ts|tsx)'],
// ...
passWithNoTests: true,
};
@SimenB I can pick this up, if this feature is needed
Will this be added? @M4rk9696 Thanks!
So... That is not going to happen?
Most helpful comment
@SimenB I can pick this up, if this feature is needed