OpenZeppelin / OpenZeppelin/openzeppelin-mcp
Error on the `stellar.test.ts`
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 29
- Forks
- 8
- Avg merge
- 21h 39m
- Merged PRs (30d)
- 4
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in tests/contracts/stellar.test.ts and inspect STELLAR_TOOLS_NAMES alongside the tools returned by the Stellar server. Update the expected names to match the received list, then run the Stellar contract test and confirm it passes; the issue notes that this was already corrected in pull request #78.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 25/100