Initial commit of n8n MCP Server
A Model Context Protocol (MCP) server that integrates with n8n, providing tools for workflow and execution management via the n8n API.
This commit is contained in:
23
jest.config.cjs
Normal file
23
jest.config.cjs
Normal file
@@ -0,0 +1,23 @@
|
||||
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']
|
||||
};
|
||||
Reference in New Issue
Block a user