We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ca614b commit 82f3c48Copy full SHA for 82f3c48
test.js
@@ -4,8 +4,6 @@ const assert = require("uvu/assert");
4
const nock = require("nock");
5
nock.disableNetConnect();
6
7
-// disable Probot logs
8
-process.env.LOG_LEVEL = "fatal";
9
const { Probot, ProbotOctokit } = require("probot");
10
11
const app = require("./app");
@@ -15,8 +13,11 @@ let probot;
15
13
const test = suite("app");
16
14
test.before.each(() => {
17
probot = new Probot({
18
- id: 1,
+ // simple authentication as alternative to appId/privateKey
19
githubToken: "test",
+ // disable logs
+ logLevel: "warn",
20
+ // disable request throttling and retries
21
Octokit: ProbotOctokit.defaults({
22
throttle: { enabled: false },
23
retry: { enabled: false },
0 commit comments