Skip to content

Commit 6f2d03f

Browse files
committed
ci-helper test: pass in SMTP information explicitly
No need to rely on the same magic Git config method as `misc-helper` does. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 3fe058c commit 6f2d03f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/ci-helper.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ class TestCIHelper extends CIHelper {
6464
this.testing = true;
6565
this.ghGlue = this.github;
6666

67+
this.setSMTPOptions({
68+
smtpUser: "[email protected]",
69+
smtpHost: "localhost",
70+
smtpPass: "secret",
71+
smtpOpts: eMailOptions.smtpOpts,
72+
});
73+
6774
const commentInfo = { id: 1, url: "ok" };
6875
// eslint-disable-next-line @typescript-eslint/require-await
6976
const addPRComment = jest.fn(async (): Promise<{ id: number; url: string }> => commentInfo);

0 commit comments

Comments
 (0)