The variable STELLAR_TOOLS_NAMES hasn't been updated properly, so the tests run with an error:
FAIL __tests__/contracts/stellar.test.ts
● Console
console.log
Received GET MCP request
at Object.log (node_modules/mcp-handler/dist/index.js:120:17)
● Server should initialize a client session and serve Stellar tools
expect(received).toEqual(expected) // deep equality
Expected: ArrayContaining ["stellar-fungible", "stellar-governor", "stellar-stablecoin", "stellar-non-fungible"]
Received: ["stellar-fungible", "stellar-non-fungible", "stellar-stablecoin"]
69 | const toolsNames = toolsList.map((tool) => tool.name);
70 | expect(toolsNames).toEqual(expect.arrayContaining(STELLAR_TOOLS_NAMES));
> 71 | expect(STELLAR_TOOLS_NAMES).toEqual(expect.arrayContaining(toolsNames));
| ^
72 | });
73 |
at Object.toEqual (__tests__/contracts/stellar.test.ts:71:31)
I corrected in this commit and added to this pull request.
The variable
STELLAR_TOOLS_NAMEShasn't been updated properly, so the tests run with an error:I corrected in this commit and added to this pull request.