mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-08-04 14:57:42 +00:00
Some checks are pending
Docker Dev Branch Images Build / build (Dockerfile, lc-dev, node) (push) Waiting to run
Docker Dev Branch Images Build / build (Dockerfile.multi, lc-dev-api, api-build) (push) Waiting to run
GitNexus Index / index (push) Waiting to run
GitNexus Index / post-index (push) Blocked by required conditions
* 📦 chore: update `sanitize-html` to latest
* chore: add additional modules to esModules for Jest configuration
58 lines
1.3 KiB
JavaScript
58 lines
1.3 KiB
JavaScript
const esModules = [
|
|
'@langchain/langgraph',
|
|
'@langchain/langgraph-checkpoint',
|
|
'@langchain/langgraph-sdk',
|
|
'@mistralai/mistralai',
|
|
'domelementtype',
|
|
'domhandler',
|
|
'dom-serializer',
|
|
'domutils',
|
|
'entities',
|
|
'htmlparser2',
|
|
'sanitize-html',
|
|
'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,
|
|
};
|