UNPKG

@zhanghongping/json-sage-workflow

Version:

智能的JSON处理工作流系统,提供自动化监控、验证和转换功能

20 lines (19 loc) 610 B
module.exports = { preset: 'ts-jest', testEnvironment: 'node', testMatch: ['**/__tests__/**/*.test.ts', '**/__tests__/**/*.test.js'], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], transform: { '^.+\\.tsx?$': ['ts-jest', { isolatedModules: true // 提升性能 }] }, maxWorkers: '50%', // 优化并行执行 bail: true, // 首次失败时停止 verbose: true, collectCoverage: true, coverageReporters: ['text', 'lcov'], coverageDirectory: 'coverage', cache: true, // 启用缓存 cacheDirectory: './jest-cache' // 缓存目录 };