Add instructions for testing Danger locally (#2691)

This commit is contained in:
Paul Melnikow
2019-01-08 00:16:05 -05:00
committed by GitHub
parent db365d6085
commit 84a6d28250

View File

@@ -7,6 +7,9 @@
// `./node_modules/.bin/danger pr pr-url`
// Note that the line numbers in the runtime errors are incorrect.
// To test changes locally:
// DANGER_GITHUB_API_TOKEN=your-github-api-token npm run danger -- pr https://github.com/badges/shields/pull/2665
const { danger, fail, message, warn } = require('danger')
const chainsmoker = require('chainsmoker')
const { default: noTestShortcuts } = require('danger-plugin-no-test-shortcuts')