(t: TestContext)
| 5 | import { copilotReviewer } from "./graders/copilot-review.js"; |
| 6 | |
| 7 | function 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 | |
| 16 | test("the prose reviewer uses the selected model in an isolated tool-free session and removes its home", async t => { |
| 17 | token(t); |