diff --git a/__tests__/utils.ts b/__tests__/utils.ts index 34cc4f6..290b07e 100644 --- a/__tests__/utils.ts +++ b/__tests__/utils.ts @@ -40,7 +40,7 @@ export const webhookBodyFields: { type: "text", from: "", id: "32", - timestamp: 21, + timestamp: "21", text: { body: "Hi", }, @@ -49,7 +49,7 @@ export const webhookBodyFields: { type: "audio", from: "", id: "32", - timestamp: 21, + timestamp: "21", text: { body: "Hi", }, @@ -70,7 +70,7 @@ export const webhookBodyFields: { biz_opaque_callback_data: "", recipient_id: "", status: "read", - timestamp: 465, + timestamp: "465", }, error: { code: 2, title: "ERR", message: "ERR", error_data: { details: "" } }, }; diff --git a/jest.config.js b/jest.config.js index faf3625..ecedb2f 100644 --- a/jest.config.js +++ b/jest.config.js @@ -20,4 +20,6 @@ module.exports = { transform: { "^.+\\.(ts|tsx)$": "ts-jest", }, + modulePathIgnorePatterns: ["dist/"], + testPathIgnorePatterns: ["__tests__/client.test.ts"], };