add details in readme #24
Merged
Annotations
10 errors and 1 warning
|
Run npx vitest run:
src/channels/whatsapp.test.ts#L368
AssertionError: expected "vi.fn()" to be called with arguments: [ 'unregistered@g.us', Any<String> ]
Received:
1st vi.fn() call:
[
"unregistered@g.us",
- Any<String>,
+ "2026-03-25T02:21:07.000Z",
+ "WhatsApp Group red@g.us",
]
Number of calls: 1
❯ src/channels/whatsapp.test.ts:368:35
|
|
Run npx vitest run:
src/channels/whatsapp.test.ts#L333
AssertionError: expected "vi.fn()" to be called with arguments: [ 'registered@g.us', Any<String> ]
Received:
1st vi.fn() call:
[
"registered@g.us",
- Any<String>,
+ "2026-03-25T02:21:07.000Z",
+ "WhatsApp Group red@g.us",
]
Number of calls: 1
❯ src/channels/whatsapp.test.ts:333:35
|
|
Run npx vitest run:
src/channels/whatsapp/channel.ts#L199
Error: [vitest] No "ALLOW_WHATSAPP_SELF_MESSAGES" export is defined on the "../config.js" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("../config.js"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ EventEmitter.<anonymous> src/channels/whatsapp/channel.ts:199:13
This error originated in "src/channels/whatsapp.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "passes through non-LID JIDs unchanged". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
|
Run npx vitest run:
src/channels/whatsapp/channel.ts#L199
Error: [vitest] No "ALLOW_WHATSAPP_SELF_MESSAGES" export is defined on the "../config.js" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("../config.js"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ EventEmitter.<anonymous> src/channels/whatsapp/channel.ts:199:13
This error originated in "src/channels/whatsapp.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "translates known LID to phone JID". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
|
Run npx vitest run:
src/channels/whatsapp/channel.ts#L199
Error: [vitest] No "ALLOW_WHATSAPP_SELF_MESSAGES" export is defined on the "../config.js" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("../config.js"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ EventEmitter.<anonymous> src/channels/whatsapp/channel.ts:199:13
This error originated in "src/channels/whatsapp.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "uses sender JID when pushName is absent". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
|
Run npx vitest run:
src/channels/whatsapp/channel.ts#L199
Error: [vitest] No "ALLOW_WHATSAPP_SELF_MESSAGES" export is defined on the "../config.js" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("../config.js"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ EventEmitter.<anonymous> src/channels/whatsapp/channel.ts:199:13
This error originated in "src/channels/whatsapp.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "handles message with no extractable text (e.g. voice note without caption)". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
|
Run npx vitest run:
src/channels/whatsapp/channel.ts#L199
Error: [vitest] No "ALLOW_WHATSAPP_SELF_MESSAGES" export is defined on the "../config.js" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("../config.js"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ EventEmitter.<anonymous> src/channels/whatsapp/channel.ts:199:13
This error originated in "src/channels/whatsapp.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "extracts caption from videoMessage". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
|
Run npx vitest run:
src/channels/whatsapp/channel.ts#L199
Error: [vitest] No "ALLOW_WHATSAPP_SELF_MESSAGES" export is defined on the "../config.js" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("../config.js"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ EventEmitter.<anonymous> src/channels/whatsapp/channel.ts:199:13
This error originated in "src/channels/whatsapp.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "extracts caption from imageMessage". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
|
Run npx vitest run:
src/channels/whatsapp/channel.ts#L199
Error: [vitest] No "ALLOW_WHATSAPP_SELF_MESSAGES" export is defined on the "../config.js" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("../config.js"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ EventEmitter.<anonymous> src/channels/whatsapp/channel.ts:199:13
This error originated in "src/channels/whatsapp.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "extracts text from extendedTextMessage". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
|
Run npx vitest run:
src/channels/whatsapp/channel.ts#L199
Error: [vitest] No "ALLOW_WHATSAPP_SELF_MESSAGES" export is defined on the "../config.js" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("../config.js"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ EventEmitter.<anonymous> src/channels/whatsapp/channel.ts:199:13
This error originated in "src/channels/whatsapp.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "delivers message for registered group". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
|
Complete job
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
Loading