fix(signal): move system-messages test to extensions/signal and fix import paths

Test file belongs alongside the implementation it tests in extensions/signal/src/monitor/.
Update ../../ relative paths to ../../../../src/ to match the new location.
This commit is contained in:
root 2026-03-14 16:15:02 +00:00
parent 2685b11e95
commit f6e3d00a43

View File

@ -20,8 +20,8 @@ vi.mock("../send.js", () => ({
sendReadReceiptSignal: sendReadReceiptMock,
}));
vi.mock("../../auto-reply/dispatch.js", async (importOriginal) => {
const actual = await importOriginal<typeof import("../../auto-reply/dispatch.js")>();
vi.mock("../../../../src/auto-reply/dispatch.js", async (importOriginal) => {
const actual = await importOriginal<typeof import("../../../../src/auto-reply/dispatch.js")>();
return {
...actual,
dispatchInboundMessage: dispatchInboundMessageMock,
@ -30,7 +30,7 @@ vi.mock("../../auto-reply/dispatch.js", async (importOriginal) => {
};
});
vi.mock("../../pairing/pairing-store.js", () => ({
vi.mock("../../../../src/pairing/pairing-store.js", () => ({
readChannelAllowFromStore: vi.fn().mockResolvedValue([]),
upsertChannelPairingRequest: vi.fn(),
}));