Instructions to reproduce spanner issue GoogleCloudPlatform/cloud-spanner-emulator#217:
- spin up local emulator with docker-compose or similar:
docker compose up -d
- compile proto enums with protoc:
protoc --include_imports --descriptor_set_out=./out.pb enums.proto
- Run the following node script:
SPANNER_EMULATOR_HOST=localhost:9010 node ./test.js
Notice that if you comment line 49 of test.js
out and un-comment line 51, the script succeeds