Has anyone here been getting the “Project not foun...
# prisma-whats-new
a
Has anyone here been getting the “Project not found: ‘test-project-id’” error in the console when testing functions? A couple others have had this same problem but it never got resolved: https://www.graph.cool/forum/t/test-run-feature-of-functions-is-not-working/788
a
Yes, if you reopen a schema-extension, the sample event data used for the test run is messed up. You need to fix that manually, before running the test
a
Right, I’ve already been editing the sample data to fit my tests but I still get this error
a
Does the sample data contain an actual projectId and pat?
because test-project-id is only added when you don't supply that in the sample data
a
It does not, it works with that, but this is interesting because this is the first time I’ve had to do that. Previously when I was testing functions with similar functionality I didn’t need to include the projectid and pat and it still worked
n
this happens when you use the
graphcool-lib
, because the
fromEvent
helper expects those to be present
a
@nilan Yeah that’s what’s interesting because I was still using graphcool-lib before and didn’t need to include those. Not a big deal just wasn’t sure if something change recently that caused the requirement