-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
26 lines (26 loc) · 755 Bytes
/
jest.config.js
File metadata and controls
26 lines (26 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
roots: ['<rootDir>/packages'],
testMatch: ['**/__tests__/**/*.test.ts'],
collectCoverageFrom: [
'packages/*/src/**/*.ts',
'!packages/*/src/**/*.d.ts',
'!packages/*/dist/**',
'!packages/anthropic/**',
'!packages/langchain/**',
],
coverageDirectory: 'coverage',
coverageReporters: ['text', 'lcov', 'html'],
moduleNameMapper: {
'^agentledger-core$': '<rootDir>/packages/core/src',
'^agentledger-openai$': '<rootDir>/packages/openai/src',
'^agentledger-cli$': '<rootDir>/packages/cli/src',
},
transform: {
'^.+\\.tsx?$': ['ts-jest', {
tsconfig: 'tsconfig.json',
}],
},
};