A Model Context Protocol (MCP) server that integrates with n8n, providing tools for workflow and execution management via the n8n API.
24 lines
676 B
JavaScript
24 lines
676 B
JavaScript
module.exports = {
|
|
// Use commonjs style export
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'node',
|
|
transform: {
|
|
'^.+\\.tsx?$': 'babel-jest',
|
|
},
|
|
// Allow src and test folders to resolve imports properly
|
|
moduleNameMapper: {
|
|
'^(\\.{1,2}/.*)\\.js$': '$1',
|
|
},
|
|
// Handle the modelcontextprotocol SDK
|
|
transformIgnorePatterns: [
|
|
"node_modules/(?!(@modelcontextprotocol)/)"
|
|
],
|
|
collectCoverage: true,
|
|
coverageDirectory: 'coverage',
|
|
coverageReporters: ['text', 'lcov'],
|
|
testMatch: ['**/tests/**/*.test.ts'],
|
|
verbose: true,
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
|
|
setupFilesAfterEnv: ['<rootDir>/tests/test-setup.ts']
|
|
};
|