An example synctos project that demonstrates the basics of writing specifications/test cases using the built in testing utilities as originally referenced by the post Testing your Sync Gateway functions with synctos on the official Couchbase blog. Refer to the synctos README, test-fixture-maker module and validation-error-formatter module for more information.
Instructions:
- Download project dependencies:
npm install
- Validate document definitions and run test cases:
npm test
- Generate the sync functions in the
build
directory:npm run build
- Clean up all build artifacts:
npm run clean