module-telemetry-policy

1.2.8 • Public • Published

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

@tristanls

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: Object
    • construct: Function Function that should return a correctly instantiated instance of module to be tested.
    • package: Object Parsed package.json to extract module name and version 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.

Package Sidebar

Install

npm i module-telemetry-policy

Weekly Downloads

0

Version

1.2.8

License

MIT

Unpacked Size

9.15 kB

Total Files

5

Last publish

Collaborators

  • tristanls