59df2f6856
Update error handling and improve streaming capabilities in the Ollama client and related components. Key changes include: - Simplify error types and improve error handling - Refactor streaming logic to use async generators - Update tool execution and vault indexing - Improve utility functions and types - Update test files to reflect changes
19 lines
425 B
JavaScript
Executable File
19 lines
425 B
JavaScript
Executable File
module.exports = {
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'jsdom',
|
|
testMatch: ['**/tests/**/*.test.ts'],
|
|
moduleFileExtensions: ['ts', 'js', 'json', 'node'],
|
|
transform: {
|
|
'^.+\\.ts$': 'ts-jest',
|
|
},
|
|
coverageDirectory: 'coverage',
|
|
collectCoverage: true,
|
|
coverageReporters: ['text', 'lcov'],
|
|
setupFiles: ['./jest.setup.js'],
|
|
globals: {
|
|
'ts-jest': {
|
|
tsconfig: 'tsconfig.test.json',
|
|
},
|
|
},
|
|
};
|