handwritten/datastore/mock-server/README.md
The mock server code in this folder is used for observing requests that will be sent to the server. When the server sends back a vague error it is often because the request it receives is incorrect so it is crucial to have a tool to view the request in order to know what client library code needs to change.
The steps to follow for using the mock server is:
test/try-server.ts to see how the mock server is used.it to it.only to isolate that test.startServer(async () => {apiEndpoint: 'localhost:50051' is passed into the datastore client that is used for this test.runQuery then in datastore-server.ts, change .addService(service, {runQuery: grpcEndpoint}) to .addService(service, {<<OtherGrpcEndpoint>>: grpcEndpoint})SET A BREAKPOINT HERE in datastore-server.tsnpm run system-test -- --inspect in terminal)