⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
test(notifications): check delivery and explain who gets notified (#1799)
Tin Sever2518ecba7f61
diff --git a/apps/web/src/components/account/notification-preferences-settings.tsx b/apps/web/src/components/account/notification-preferences-settings.tsxindex f5016729f..2d70f990d 100644--- a/apps/web/src/components/account/notification-preferences-settings.tsx+++ b/apps/web/src/components/account/notification-preferences-settings.tsx@@ -582,6 +582,9 @@ export function NotificationPreferencesSettings() {<p className="text-sm text-muted-foreground">{t("settings:notificationsPage.eventPreferencesDescription")}</p>+ <p className="text-sm text-muted-foreground">+ {t("settings:notificationsPage.recipientHint")}+ </p></div><div className="flex flex-col gap-4">diff --git a/i18n/az-AZ.json b/i18n/az-AZ.jsonindex 432763826..297f07906 100644--- a/i18n/az-AZ.json+++ b/i18n/az-AZ.json@@ -518,7 +518,8 @@"toastPreferencesSaved": "Bildiriş tərcihləri yadda saxlanıldı","toastPreferencesSaveFailed": "Bildiriş tərcihlərini yadda saxlamaq alınmadı","toastRuleSavedGeneric": "İş sahəsinin bildiriş qaydası yadda saxlanıldı",- "toastRuleRemovedGeneric": "İş sahəsinin bildiriş qaydası çıxarıldı"+ "toastRuleRemovedGeneric": "İş sahəsinin bildiriş qaydası çıxarıldı",+ "recipientHint": "Şərhlər və status dəyişiklikləri sizə təyin edilmiş tapşırıqlar barədə bildiriş göndərir. Qeyd etmələr seçilmiş üzvə bildiriş göndərir. Öz şərhləriniz, qeyd etmələriniz və status dəyişiklikləriniz üçün bildiriş almırsınız."},"preferencesPage": {"title": "Tərcihlər",diff --git a/i18n/de-DE.json b/i18n/de-DE.jsonindex ea3e39763..51a1e40cd 100644--- a/i18n/de-DE.json+++ b/i18n/de-DE.json@@ -598,7 +598,8 @@"toastPreferencesSaved": "Benachrichtigungseinstellungen gespeichert","toastPreferencesSaveFailed": "Benachrichtigungseinstellungen konnten nicht gespeichert werden","toastRuleSavedGeneric": "Arbeitsbereichs-Benachrichtigungsregel gespeichert",- "toastRuleRemovedGeneric": "Arbeitsbereichs-Benachrichtigungsregel entfernt"+ "toastRuleRemovedGeneric": "Arbeitsbereichs-Benachrichtigungsregel entfernt",+ "recipientHint": "Kommentare und Statusänderungen benachrichtigen dich über dir zugewiesene Aufgaben. Erwähnungen benachrichtigen das ausgewählte Mitglied. Deine eigenen Kommentare, Erwähnungen und Statusänderungen lösen keine Benachrichtigung an dich aus."},"preferencesPage": {"title": "Einstellungen",diff --git a/i18n/el-GR.json b/i18n/el-GR.jsonindex 165bbecd0..8aefcc3d3 100644--- a/i18n/el-GR.json+++ b/i18n/el-GR.json@@ -518,7 +518,8 @@"reminderLeadTimeUnitHours": "Ώρες","reminderLeadTimeUnitDays": "Ημέρες","reminderLeadTimeInvalid": "Εισαγάγετε ακέραιο αριθμό μεταξύ 1 και {{max}}.",- "saveEventPreferences": "Αποθήκευση τύπων ειδοποιήσεων"+ "saveEventPreferences": "Αποθήκευση τύπων ειδοποιήσεων",+ "recipientHint": "Τα σχόλια και οι αλλαγές κατάστασης σας ειδοποιούν για εργασίες που σας έχουν ανατεθεί. Οι αναφορές ειδοποιούν το επιλεγμένο μέλος. Τα δικά σας σχόλια, οι αναφορές και οι αλλαγές κατάστασης δεν σας στέλνουν ειδοποιήσεις."},"preferencesPage": {"title": "Προτιμήσεις",diff --git a/i18n/en-US.json b/i18n/en-US.jsonindex 85604d55f..932f087db 100644--- a/i18n/en-US.json+++ b/i18n/en-US.json@@ -598,7 +598,8 @@"toastPreferencesSaved": "Notification preferences saved","toastPreferencesSaveFailed": "Failed to save notification preferences","toastRuleSavedGeneric": "Workspace notification rule saved",- "toastRuleRemovedGeneric": "Workspace notification rule removed"+ "toastRuleRemovedGeneric": "Workspace notification rule removed",+ "recipientHint": "Comments and status changes notify you about tasks assigned to you. Mentions notify the selected member. Your own comments, mentions, and status changes do not notify you."},"preferencesPage": {"title": "Preferences",diff --git a/i18n/es-ES.json b/i18n/es-ES.jsonindex ec6cbef4a..f463eaaac 100644--- a/i18n/es-ES.json+++ b/i18n/es-ES.json@@ -1064,7 +1064,8 @@"toastPreferencesSaved": "Preferencias de notificación guardadas","toastPreferencesSaveFailed": "Error al guardar las preferencias de notificación","toastRuleSavedGeneric": "Regla de notificación del espacio de trabajo guardada",- "toastRuleRemovedGeneric": "Regla de notificación del espacio de trabajo eliminada"+ "toastRuleRemovedGeneric": "Regla de notificación del espacio de trabajo eliminada",+ "recipientHint": "Los comentarios y los cambios de estado te notifican sobre las tareas que tienes asignadas. Las menciones notifican al miembro seleccionado. Tus propios comentarios, menciones y cambios de estado no te envían notificaciones."},"workspaceRoles": {"pageTitle": "Roles",diff --git a/i18n/fr-FR.json b/i18n/fr-FR.jsonindex 87a773d47..d107f649c 100644--- a/i18n/fr-FR.json+++ b/i18n/fr-FR.json@@ -518,7 +518,8 @@"reminderLeadTimeUnitHours": "Heures","reminderLeadTimeUnitDays": "Jours","reminderLeadTimeInvalid": "Entrez un nombre entier entre 1 et {{max}}.",- "saveEventPreferences": "Enregistrer les types de notification"+ "saveEventPreferences": "Enregistrer les types de notification",+ "recipientHint": "Les commentaires et les changements de statut vous notifient des tâches qui vous sont assignées. Les mentions notifient le membre sélectionné. Vos propres commentaires, mentions et changements de statut ne vous envoient pas de notifications."},"preferencesPage": {"title": "Préférences",diff --git a/i18n/hi-IN.json b/i18n/hi-IN.jsonindex 8c7aec00e..b6bbdce3a 100644--- a/i18n/hi-IN.json+++ b/i18n/hi-IN.json@@ -518,7 +518,8 @@"toastPreferencesSaved": "सूचना प्राथमिकताएँ सहेजी गईं","toastPreferencesSaveFailed": "सूचना प्राथमिकताएँ सहेजने में विफल","toastRuleSavedGeneric": "वर्कस्पेस सूचना नियम सहेजा गया",- "toastRuleRemovedGeneric": "वर्कस्पेस सूचना नियम हटाया गया"+ "toastRuleRemovedGeneric": "वर्कस्पेस सूचना नियम हटाया गया",+ "recipientHint": "टिप्पणियों और स्थिति में बदलाव की सूचनाएँ आपको सौंपे गए कार्यों के लिए मिलती हैं। उल्लेख की सूचना चुने गए सदस्य को मिलती है। अपनी टिप्पणियों, उल्लेखों और स्थिति में बदलाव की सूचनाएँ आपको नहीं मिलतीं।"},"preferencesPage": {"title": "प्राथमिकताएँ",diff --git a/i18n/id-ID.json b/i18n/id-ID.jsonindex 52b96f265..74ca2012f 100644--- a/i18n/id-ID.json+++ b/i18n/id-ID.json@@ -518,7 +518,8 @@"reminderLeadTimeUnitHours": "Jam","reminderLeadTimeUnitDays": "Hari","reminderLeadTimeInvalid": "Masukkan bilangan bulat antara 1 dan {{max}}.",- "saveEventPreferences": "Simpan jenis notifikasi"+ "saveEventPreferences": "Simpan jenis notifikasi",+ "recipientHint": "Komentar dan perubahan status memberi tahu Anda tentang tugas yang ditugaskan kepada Anda. Sebutan memberi tahu anggota yang dipilih. Komentar, sebutan, dan perubahan status Anda sendiri tidak mengirimkan notifikasi kepada Anda."},"preferencesPage": {"title": "Preferensi",diff --git a/i18n/it-IT.json b/i18n/it-IT.jsonindex 494debf9d..2ea59c226 100644--- a/i18n/it-IT.json+++ b/i18n/it-IT.json@@ -518,7 +518,8 @@"toastPreferencesSaved": "Preferenze notifiche salvate","toastPreferencesSaveFailed": "Salvataggio preferenze notifiche fallito","toastRuleSavedGeneric": "Regola notifiche workspace salvata",- "toastRuleRemovedGeneric": "Regola notifiche workspace rimossa"+ "toastRuleRemovedGeneric": "Regola notifiche workspace rimossa",+ "recipientHint": "I commenti e le modifiche di stato ti avvisano delle attività assegnate a te. Le menzioni avvisano il membro selezionato. I tuoi commenti, le tue menzioni e le tue modifiche di stato non ti inviano notifiche."},"preferencesPage": {"title": "Preferenze",diff --git a/i18n/ja-JP.json b/i18n/ja-JP.jsonindex 82e7b1c2b..d2c7bcbcd 100644--- a/i18n/ja-JP.json+++ b/i18n/ja-JP.json@@ -518,7 +518,8 @@"toastPreferencesSaved": "通知設定を保存しました","toastPreferencesSaveFailed": "通知設定の保存に失敗しました","toastRuleSavedGeneric": "ワークスペースの通知ルールを保存しました",- "toastRuleRemovedGeneric": "ワークスペースの通知ルールを削除しました"+ "toastRuleRemovedGeneric": "ワークスペースの通知ルールを削除しました",+ "recipientHint": "自分に割り当てられたタスクへのコメントやステータスの変更が通知されます。メンションは選択したメンバーに通知されます。自分のコメント、メンション、ステータスの変更は自分には通知されません。"},"preferencesPage": {"title": "環境設定",diff --git a/i18n/ko-KR.json b/i18n/ko-KR.jsonindex 4ab7b20b8..b71f92294 100644--- a/i18n/ko-KR.json+++ b/i18n/ko-KR.json@@ -518,7 +518,8 @@"reminderLeadTimeUnitHours": "시간","reminderLeadTimeUnitDays": "일","reminderLeadTimeInvalid": "1에서 {{max}} 사이의 정수를 입력하세요.",- "saveEventPreferences": "알림 유형 저장"+ "saveEventPreferences": "알림 유형 저장",+ "recipientHint": "본인에게 할당된 작업의 댓글과 상태 변경에 대한 알림을 받습니다. 멘션은 선택한 멤버에게 알림을 보냅니다. 본인이 작성한 댓글, 멘션 및 상태 변경에 대해서는 알림을 받지 않습니다."},"preferencesPage": {"title": "환경설정",diff --git a/i18n/mk-MK.json b/i18n/mk-MK.jsonindex 063e809b3..f1d29670b 100644--- a/i18n/mk-MK.json+++ b/i18n/mk-MK.json@@ -518,7 +518,8 @@"reminderLeadTimeUnitHours": "Часови","reminderLeadTimeUnitDays": "Денови","reminderLeadTimeInvalid": "Внеси цел број помеѓу 1 и {{max}}.",- "saveEventPreferences": "Зачувај типови на известувања"+ "saveEventPreferences": "Зачувај типови на известувања",+ "recipientHint": "Коментарите и промените на статусот ве известуваат за задачите што ви се доделени. Спомнувањата го известуваат избраниот член. Вашите сопствени коментари, спомнувања и промени на статусот не ви испраќаат известувања."},"preferencesPage": {"title": "Преференции",diff --git a/i18n/nl-NL.json b/i18n/nl-NL.jsonindex 5bf6914dd..bb57b3276 100644--- a/i18n/nl-NL.json+++ b/i18n/nl-NL.json@@ -1064,7 +1064,8 @@"toastPreferencesSaved": "Meldingsvoorkeuren opgeslagen","toastPreferencesSaveFailed": "Opslaan meldingsvoorkeuren mislukt","toastRuleSavedGeneric": "Werkruimte-meldingsregel opgeslagen",- "toastRuleRemovedGeneric": "Werkruimte-meldingsregel verwijderd"+ "toastRuleRemovedGeneric": "Werkruimte-meldingsregel verwijderd",+ "recipientHint": "Reacties en statuswijzigingen geven je meldingen over taken die aan jou zijn toegewezen. Vermeldingen sturen een melding naar het geselecteerde lid. Je ontvangt geen meldingen over je eigen reacties, vermeldingen en statuswijzigingen."},"workspaceRoles": {"pageTitle": "Rollen",diff --git a/i18n/pl-PL.json b/i18n/pl-PL.jsonindex dff753325..6c97a2a28 100644--- a/i18n/pl-PL.json+++ b/i18n/pl-PL.json@@ -1324,7 +1324,8 @@"workspaceCardLabelWebhook": "Niestandardowy webhook","workspaceEnabledLabel": "Włącz powiadomienia dla {{workspaceName}}","workspaceRulesDescription": "Użyj ponownie globalnych kanałów, a następnie wybierz obszary robocze i projekty, które mogą wysyłać powiadomienia konta.",- "workspaceRulesTitle": "Reguły dostarczania dla obszaru roboczego"+ "workspaceRulesTitle": "Reguły dostarczania dla obszaru roboczego",+ "recipientHint": "Komentarze i zmiany statusu powiadamiają Cię o przypisanych Ci zadaniach. Wzmianki powiadamiają wybranego członka. Nie otrzymujesz powiadomień o własnych komentarzach, wzmiankach ani zmianach statusu."},"preferences": "Preferencje","preferencesPage": {diff --git a/i18n/pt-BR.json b/i18n/pt-BR.jsonindex 0da6258a1..f9ac382a4 100644--- a/i18n/pt-BR.json+++ b/i18n/pt-BR.json@@ -518,7 +518,8 @@"toastPreferencesSaved": "Preferências de notificação salvas","toastPreferencesSaveFailed": "Falha ao salvar preferências de notificação","toastRuleSavedGeneric": "Regra de notificação do espaço de trabalho salva",- "toastRuleRemovedGeneric": "Regra de notificação do espaço de trabalho removida"+ "toastRuleRemovedGeneric": "Regra de notificação do espaço de trabalho removida",+ "recipientHint": "Comentários e alterações de status notificam você sobre tarefas atribuídas a você. Menções notificam o membro selecionado. Seus próprios comentários, menções e alterações de status não enviam notificações a você."},"preferencesPage": {"title": "Preferências",diff --git a/i18n/ru-RU.json b/i18n/ru-RU.jsonindex 7a5c14a86..85f92e612 100644--- a/i18n/ru-RU.json+++ b/i18n/ru-RU.json@@ -518,7 +518,8 @@"reminderLeadTimeUnitHours": "Часы","reminderLeadTimeUnitDays": "Дни","reminderLeadTimeInvalid": "Введите целое число от 1 до {{max}}.",- "saveEventPreferences": "Сохранить типы уведомлений"+ "saveEventPreferences": "Сохранить типы уведомлений",+ "recipientHint": "Комментарии и изменения статуса уведомляют вас о назначенных вам задачах. Упоминания уведомляют выбранного участника. Вы не получаете уведомлений о собственных комментариях, упоминаниях и изменениях статуса."},"preferencesPage": {"title": "Настройки",diff --git a/i18n/schema.json b/i18n/schema.jsonindex 1ab36005e..ac1c2ab7a 100644--- a/i18n/schema.json+++ b/i18n/schema.json@@ -2276,6 +2276,9 @@},"toastRuleRemovedGeneric": {"type": "string"+ },+ "recipientHint": {+ "type": "string"}},"required": [@@ -2378,7 +2381,8 @@"toastPreferencesSaved","toastPreferencesSaveFailed","toastRuleSavedGeneric",- "toastRuleRemovedGeneric"+ "toastRuleRemovedGeneric",+ "recipientHint"]},"preferencesPage": {diff --git a/i18n/tr-TR.json b/i18n/tr-TR.jsonindex 166fecb82..f9ef1737c 100644--- a/i18n/tr-TR.json+++ b/i18n/tr-TR.json@@ -518,7 +518,8 @@"reminderLeadTimeUnitHours": "Saat","reminderLeadTimeUnitDays": "Gün","reminderLeadTimeInvalid": "1 ile {{max}} arasında bir tam sayı girin.",- "saveEventPreferences": "Bildirim türlerini kaydet"+ "saveEventPreferences": "Bildirim türlerini kaydet",+ "recipientHint": "Yorumlar ve durum değişiklikleri, size atanan görevler hakkında bildirim gönderir. Bahsetmeler seçilen üyeye bildirim gönderir. Kendi yorumlarınız, bahsetmeleriniz ve durum değişiklikleriniz için bildirim almazsınız."},"preferencesPage": {"title": "Tercihler",diff --git a/i18n/uk-UA.json b/i18n/uk-UA.jsonindex 2522d676e..d63cad6c5 100644--- a/i18n/uk-UA.json+++ b/i18n/uk-UA.json@@ -518,7 +518,8 @@"reminderLeadTimeUnitHours": "Години","reminderLeadTimeUnitDays": "Дні","reminderLeadTimeInvalid": "Введіть ціле число від 1 до {{max}}.",- "saveEventPreferences": "Зберегти типи сповіщень"+ "saveEventPreferences": "Зберегти типи сповіщень",+ "recipientHint": "Коментарі та зміни статусу сповіщають вас про призначені вам завдання. Згадки сповіщають вибраного учасника. Ви не отримуєте сповіщень про власні коментарі, згадки та зміни статусу."},"preferencesPage": {"title": "Налаштування",diff --git a/i18n/vi-VN.json b/i18n/vi-VN.jsonindex 34fedd415..0e3b8f5c7 100644--- a/i18n/vi-VN.json+++ b/i18n/vi-VN.json@@ -518,7 +518,8 @@"toastPreferencesSaved": "Đã lưu tùy chọn thông báo","toastPreferencesSaveFailed": "Không thể lưu tùy chọn thông báo","toastRuleSavedGeneric": "Đã lưu quy tắc thông báo không gian làm việc",- "toastRuleRemovedGeneric": "Đã gỡ quy tắc thông báo không gian làm việc"+ "toastRuleRemovedGeneric": "Đã gỡ quy tắc thông báo không gian làm việc",+ "recipientHint": "Bình luận và thay đổi trạng thái thông báo cho bạn về các công việc được giao cho bạn. Lượt nhắc thông báo cho thành viên được chọn. Bạn không nhận thông báo về bình luận, lượt nhắc và thay đổi trạng thái do chính mình thực hiện."},"preferencesPage": {"title": "Tùy chọn",diff --git a/i18n/zh-CN.json b/i18n/zh-CN.jsonindex f7300b2fd..0567c6a03 100644--- a/i18n/zh-CN.json+++ b/i18n/zh-CN.json@@ -518,7 +518,8 @@"toastPreferencesSaved": "通知偏好已保存","toastPreferencesSaveFailed": "保存通知偏好失败","toastRuleSavedGeneric": "工作区通知规则已保存",- "toastRuleRemovedGeneric": "工作区通知规则已移除"+ "toastRuleRemovedGeneric": "工作区通知规则已移除",+ "recipientHint": "评论和状态变更会向你发送有关分配给你的任务的通知。提及会通知所选成员。你自己的评论、提及和状态变更不会向你发送通知。"},"preferencesPage": {"title": "偏好设置",diff --git a/tests/api-integration/notification-delivery-events.test.ts b/tests/api-integration/notification-delivery-events.test.tsnew file mode 100644index 000000000..e8614100c--- /dev/null+++ b/tests/api-integration/notification-delivery-events.test.ts@@ -0,0 +1,150 @@+import * as email from "@kaneo/email";+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";+import "../../apps/api/src/notification";+import createComment from "../../apps/api/src/activity/controllers/create-comment";+import db, { schema } from "../../apps/api/src/database";+import { encryptSecret } from "../../apps/api/src/notification-preferences/secrets";+import updateTaskStatus from "../../apps/api/src/task/controllers/update-task-status";+import { sendOutboundRequest } from "../../apps/api/src/utils/outbound-request";+import { resetTestDatabase } from "./helpers/database";+import {+ createProjectFixture,+ createWorkspaceMember,+} from "./helpers/fixtures";++vi.mock("@kaneo/email", async (original) => ({+ ...(await original<object>()),+ sendNotificationEmail: vi.fn(async () => undefined),+}));++vi.mock("../../apps/api/src/utils/outbound-request", async (original) => ({+ ...(await original<object>()),+ sendOutboundRequest: vi.fn(async () => new Response(null, { status: 200 })),+}));++afterEach(() => vi.unstubAllEnvs());+beforeEach(async () => {+ vi.stubEnv("NOTIFICATION_SECRET_ENCRYPTION_KEY", "notification-test-key");+ await resetTestDatabase();+ vi.clearAllMocks();+});+async function fixture(separateAssignee = false) {+ const actor = await createWorkspaceMember();+ const recipient = await createWorkspaceMember();+ await db.insert(schema.workspaceUserTable).values({+ workspaceId: actor.workspace.id,+ userId: recipient.user.id,+ joinedAt: new Date(),+ });+ const assignee = separateAssignee ? await createWorkspaceMember() : recipient;+ if (separateAssignee) {+ await db.insert(schema.workspaceUserTable).values({+ workspaceId: actor.workspace.id,+ userId: assignee.user.id,+ joinedAt: new Date(),+ });+ }+ const { project } = await createProjectFixture({+ workspaceId: actor.workspace.id,+ });+ const [task] = await db+ .insert(schema.taskTable)+ .values({+ projectId: project.id,+ title: "Notified task",+ userId: assignee.user.id,+ status: "to-do",+ })+ .returning();+ await db.insert(schema.userNotificationPreferenceTable).values({+ userId: recipient.user.id,+ emailEnabled: true,+ gotifyEnabled: true,+ gotifyServerUrl: "https://gotify.example",+ gotifyToken: encryptSecret("gotify-test-token"),+ taskCommentEnabled: true,+ taskStatusChangeEnabled: true,+ });+ await db.insert(schema.userNotificationWorkspaceRuleTable).values({+ userId: recipient.user.id,+ workspaceId: actor.workspace.id,+ isActive: true,+ emailEnabled: true,+ projectMode: "all",+ gotifyEnabled: true,+ });+ const send = vi+ .spyOn(email, "sendNotificationEmail")+ .mockResolvedValue(undefined);+ return { actor, recipient, assignee, task, send };+}+describe("status, comment and mention delivery", () => {+ it.each(["status", "comment", "mention"] as const)(+ "delivers %s notifications through the event, email and Gotify paths",+ async (kind) => {+ const { actor, recipient, assignee, task, send } = await fixture(+ kind === "mention",+ );+ if (kind === "status") {+ await updateTaskStatus({+ id: task.id,+ status: "in-progress",+ currentUserId: actor.user.id,+ });+ } else {+ await createComment(+ task.id,+ actor.user.id,+ kind === "mention"+ ? `<kaneo-mention id="${recipient.user.id}" label="Recipient"></kaneo-mention> please review`+ : "Please review",+ );+ }+ await vi.waitFor(() => expect(send).toHaveBeenCalledTimes(1));+ expect(send.mock.calls[0][0]).toBe(recipient.user.email);+ await vi.waitFor(() =>+ expect(sendOutboundRequest).toHaveBeenCalledTimes(1),+ );+ expect(vi.mocked(sendOutboundRequest).mock.calls[0][0]).toContain(+ "https://gotify.example/message",+ );+ const notifications = await db.select().from(schema.notificationTable);+ expect(notifications).toHaveLength(kind === "mention" ? 2 : 1);+ expect(notifications).toEqual(+ expect.arrayContaining([+ expect.objectContaining({+ userId: recipient.user.id,+ type: kind === "status" ? "task_status_changed" : `task_${kind}`,+ }),+ ]),+ );+ if (kind === "mention") {+ expect(notifications).toEqual(+ expect.arrayContaining([+ expect.objectContaining({+ userId: assignee.user.id,+ type: "task_comment",+ }),+ ]),+ );+ }+ },+ );+ it("suppresses an assignee's own status changes, comments and mentions", async () => {+ const { recipient, task, send } = await fixture();+ await updateTaskStatus({+ id: task.id,+ status: "in-progress",+ currentUserId: recipient.user.id,+ });+ await createComment(task.id, recipient.user.id, "My own comment");+ await createComment(+ task.id,+ recipient.user.id,+ `<kaneo-mention id="${recipient.user.id}">Me</kaneo-mention>`,+ );+ expect(await db.select().from(schema.notificationTable)).toEqual([]);+ expect(send).not.toHaveBeenCalled();+ expect(sendOutboundRequest).not.toHaveBeenCalled();+ });+});