import { Provider } from "@nestjs/common" ; import { IncomingWebhook } from "@slack/webhook" ; import { SLACK_TOKEN } from "nestjs-slack-webhook/lib/slackConstants" ; export function createSlackServiceMock ( ) { return { provide : SLACK_TOKEN , useValue : { send : jest . fn ( ) } } ; }