@nestjs-yalc/jest-config
v1.3.3
Published
Reusable Jest configuration generators for YALC-style TypeScript and NestJS projects.
Readme
@nestjs-yalc/jest-config
Reusable Jest configuration generators for YALC-style TypeScript and NestJS projects.
Use this package when a consuming workspace wants the same ts-jest defaults, coverage threshold handling, GraphQL AST transformer, and project generation used by the YALC monorepo.
Installation
npm install --save-dev @nestjs-yalc/jest-configMain Exports
jestConfGeneratorfor creating multi-project Jest configs.createE2EConfigfor e2e Jest configuration.tsJestConfigandtsJestConfigE2Efor ts-jest setup.coverageThreshold,coveragePathIgnorePatterns, and default globals.
Example
import { jestConfGenerator } from '@nestjs-yalc/jest-config';
export default jestConfGenerator(rootPath, projects, appProjects, {
skipProjects: ['types'],
});