Files
LibreChat/packages/api/jest.config.mjs
Danny Avila 44ed7864fb 📜 feat: Improve Skill Authoring Guidance (#13517)
* feat: Improve skill authoring guidance

* test: Guard tool description lengths

* fix: Align skill template guidance

* fix: Satisfy advisory limit test lint

* fix: Transform LangGraph ESM in Jest
2026-06-04 18:36:16 -04:00

51 lines
1.2 KiB
JavaScript

const esModules = [
'@langchain/langgraph',
'@langchain/langgraph-checkpoint',
'@langchain/langgraph-sdk',
'uuid',
].join('|');
export default {
collectCoverageFrom: ['src/**/*.{js,jsx,ts,tsx}', '!<rootDir>/node_modules/'],
coveragePathIgnorePatterns: ['/node_modules/', '/dist/'],
testPathIgnorePatterns: [
'/node_modules/',
'/dist/',
'\\.dev\\.ts$',
'\\.helper\\.ts$',
'\\.helper\\.d\\.ts$',
'/__tests__/helpers/',
'\\.manual\\.spec\\.[jt]sx?$',
],
coverageReporters: ['text', 'cobertura'],
testResultsProcessor: 'jest-junit',
transform: {
'\\.[jt]sx?$': [
'babel-jest',
{
presets: [
['@babel/preset-env', { targets: { node: 'current' } }],
'@babel/preset-typescript',
],
},
],
},
transformIgnorePatterns: [`/node_modules/(?!(${esModules})/).*/`],
moduleNameMapper: {
'^@src/(.*)$': '<rootDir>/src/$1',
'~/(.*)': '<rootDir>/src/$1',
},
// coverageThreshold: {
// global: {
// statements: 58,
// branches: 49,
// functions: 50,
// lines: 57,
// },
// },
setupFiles: ['<rootDir>/jest.setup.cjs'],
maxWorkers: '50%',
restoreMocks: true,
testTimeout: 15000,
};