node package manager

peer-tester

peer-tester

Test a project with every valid peer dependency.

Build Status Dependency Status NPM version

Installation

npm install peer-tester --save-dev

Usage

Add & peer-tester to your npm test script, e.g.

{
  "peerDependencies": {
    "react": "*"
  },
  "devDependencies": {
    "jest": "*",
    "peer-tester": "*",
    "react": "*"
  },
  "scripts": {
    "test": "jest && peer-tester"
  }
}

This will first run your tests for the currently installed configuration, then run your tests again for each version of "react" that matches "*".

To see options, run peer-tester --help.

License

MIT