Open clauBv23 opened 4 months ago
Hello!
I'm not sure if this will be helpful, but I've encountered a similar issue.
In the end, I found that using dataSourceMock
for testing worked well for me.
https://thegraph.com/docs/en/developing/unit-testing-framework/#testing-dynamic-data-sources
Hi there:
I'm trying to test some logic that involves the creation of new templates. But when checking the created templates from one test to the other they are not being initialized and continue existing. For cleaning the store exists the
clearStore
I was wondering if there is a similar function for creating the data source.I mean, let's say I have something like this:
I would like to be able to clean the data sources to test their existence properly, having a function like
clearStore
to clear the data sourcesclearDataSources
will help.Thanks