MCPcopy Create free account
hub / github.com/cli/cli / token

Function token

evals/src/review.test.ts:7–14  ·  view source on GitHub ↗
(t: TestContext)

Source from the content-addressed store, hash-verified

5import { copilotReviewer } from "./graders/copilot-review.js";
6
7function token(t: TestContext): void {
8 const previous = process.env.COPILOT_GITHUB_TOKEN;
9 process.env.COPILOT_GITHUB_TOKEN = "test-model-token";
10 t.after(() => {
11 if (previous === undefined) delete process.env.COPILOT_GITHUB_TOKEN;
12 else process.env.COPILOT_GITHUB_TOKEN = previous;
13 });
14}
15
16test("the prose reviewer uses the selected model in an isolated tool-free session and removes its home", async t => {
17 token(t);

Callers 1

review.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected