module-telemetry-policy
This repository serves as a telemetry policy for modules. It is structured as a Jest test suite so that it can be included as a test in a module implementation.
Contributors
Contents
Installation
npm install module-telemetry-policy
Usage
See examples/readme.test.js
for usage example as a test, as well as a sample implementation of a module that conforms to the policy (MyModule
).
Tests
No automated tests of the policy tests.
Documentation
moduleTelemetryPolicy(config)
config
: Objectconstruct
: Function Function that should return a correctly instantiated instance of module to be tested.package
: Object Parsedpackage.json
to extract modulename
andversion
from.
Executes tests ensuring that the instantiated module returned by calling construct
complies with the specified module telemetry policy.
Releases
We follow semantic versioning policy (see: semver.org):
Given a version number MAJOR.MINOR.PATCH, increment the:
MAJOR version when you make incompatible API changes,
MINOR version when you add functionality in a backwards-compatible manner, and
PATCH version when you make backwards-compatible bug fixes.
caveat: Major version zero is a special case indicating development version that may make incompatible API changes without incrementing MAJOR version.