Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

createMockFunction() is incompatible with "matchstick-as": "^0.5.0" and "@graphprotocol/graph-ts": "^0.27.0" #598

Open
mitchhs12 opened this issue Feb 6, 2024 · 1 comment

Comments

@mitchhs12
Copy link
Contributor

The docs imply that matchstick-as >=0.5.0 is a requirement.

As explained here: https://thegraph.com/docs/en/developing/unit-testing-framework/#tests-structure-050

However, using createMockedFunction() with "matchstick-as": "^0.5.0" with "@graphprotocol/graph-ts": "^0.27.0" gives incompatability issues; making the function unusable (see here).

However, simply updating to "matchstick-as": "^0.6.0" and "graphprotocol/graph-ts": "^0.31.0" fixes this issue and allows one to use createMockedFunction() properly.

@saihaj
Copy link
Member

saihaj commented Feb 7, 2024

would you like to send in a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants