Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.

Commit 0e750b1

Browse files
committed
test
1 parent 94696b1 commit 0e750b1

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

src/__snapshots__/comment.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Update API endpoints
1717
<li>test-project-python: Fatal error.</li>
1818
</ul>
1919
20-
⚡ <b>Merge conflicts.</b> You can resolve conflicts now; if you do, <a href="https://github.com/test-org/test-sdk/actions/runs/NaN">re-run this GitHub action</a> to get diffs. If you merge before resolving conflicts, new conflict PRs will be created after merging.
20+
⚡ <b>Merge conflicts.</b> You can resolve conflicts now; if you do, <a href="https://github.com/test-org/test-sdk/actions/runs/200">re-run this GitHub action</a> to get diffs. If you merge before resolving conflicts, new conflict PRs will be created after merging.
2121
2222
<ul>
2323
<li>test-project-go: <a href="https://github.com/test-org/test-sdk/pull/1">Link to conflict.</a></li>

src/comment.test.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,27 @@ import type { Outcomes } from "./build";
33
import { parseCommitMessage, printComment } from "./comment";
44
import * as MD from "./markdown";
55

6+
vi.mock("@actions/github", () => {
7+
return {
8+
context: {
9+
repo: {
10+
owner: "test-org",
11+
repo: "test-sdk",
12+
},
13+
runId: 200,
14+
},
15+
};
16+
});
17+
618
describe("printComment", () => {
719
beforeAll(() => {
820
vi.useFakeTimers();
921
vi.setSystemTime(new Date("2000-01-01"));
10-
vi.stubEnv("GITHUB_REPOSITORY", "test-org/test-sdk");
1122
});
1223

1324
afterAll(() => {
1425
vi.useRealTimers();
15-
vi.unstubAllEnvs();
26+
vi.clearAllMocks();
1627
});
1728

1829
it("should print no changes comment", () => {

0 commit comments

Comments
 (0)