mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-06-10 01:44:44 +00:00
Some checks failed
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
Docker Dev Images Build / build (Dockerfile, librechat-dev, node) (push) Waiting to run
Docker Dev Images Build / build (Dockerfile.multi, librechat-dev-api, api-build) (push) Waiting to run
Sync Locize Translations & Create Translation PR / Sync Translation Keys with Locize (push) Waiting to run
Sync Locize Translations & Create Translation PR / Create Translation PR on Version Published (push) Blocked by required conditions
Sync Helm Chart Tags / Ignore non-main push (push) Waiting to run
Sync Helm Chart Tags / Sync chart tags (push) Waiting to run
Publish `@librechat/client` to NPM / pack (push) Has been cancelled
Publish `@librechat/client` to NPM / publish-npm (push) Has been cancelled
* 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
34 lines
961 B
JavaScript
34 lines
961 B
JavaScript
const esModules = [
|
|
'openid-client',
|
|
'oauth4webapi',
|
|
'jose',
|
|
'@langchain/langgraph',
|
|
'@langchain/langgraph-checkpoint',
|
|
'@langchain/langgraph-sdk',
|
|
'uuid',
|
|
].join('|');
|
|
|
|
module.exports = {
|
|
testEnvironment: 'node',
|
|
clearMocks: true,
|
|
roots: ['<rootDir>'],
|
|
coverageDirectory: 'coverage',
|
|
maxWorkers: '50%',
|
|
testTimeout: 30000, // 30 seconds timeout for all tests
|
|
setupFiles: ['./test/jestSetup.js', './test/__mocks__/logger.js'],
|
|
moduleNameMapper: {
|
|
'~/(.*)': '<rootDir>/$1',
|
|
'~/data/auth.json': '<rootDir>/__mocks__/auth.mock.json',
|
|
'^openid-client/passport$': '<rootDir>/test/__mocks__/openid-client-passport.js',
|
|
'^openid-client$': '<rootDir>/test/__mocks__/openid-client.js',
|
|
},
|
|
transform: {
|
|
'\\.[jt]sx?$': [
|
|
'babel-jest',
|
|
{
|
|
presets: [['@babel/preset-env', { targets: { node: 'current' } }]],
|
|
},
|
|
],
|
|
},
|
|
transformIgnorePatterns: [`/node_modules/(?!(${esModules})/).*/`],
|
|
};
|