I've generated a set of TypeScript type definitions for the Cloud Code API.
Kudos to the GameSparks team for having such consistent and parseable documentation.
For unit tests I am using mocked GameSparks SDK. I have mocked db and all that stuff. This is for local development in VisualStudio Code
When I publish new code to GameSparks server, I need to manually click every action in test harness to test if it is ok. In that case you are not clearing database, you are testing staged production enviorenment. So why not autamate that manually clicking in test harness? They are not unit tests. They are integration tests where I am not using mocked but real services. After that tests completed I can send mail to few of my devs with button to approve merging new code to production. I take that snapshot from TEST GameSparks Server and copy it to PROD GameSparks Server (where every server is new game instance in GameSparks)
I am interested for that, my testing process is very slow.
Can you show the work when you finish?
I think show the whole architecture is better, there may be others who need it
Thanks in advance!
I've generated some updated TypeScript type defs to include the new gamedataservice api.
If anyone is interested, check it out and let me know if there are any issues
First sorry for recreating the wheel.
I recreated the Cloud Code definition file from the web page and added all the document content.
If you need more code documentation, you can try my version.
P.S. does not include Request API
This is a more reliable build scripts and an example.