import { inject , Provider } from '@loopback/core' ; import { SNS } from 'aws-sdk' ; import { SNSBindings , SNSMessage , SNSNotification , } from 'loopback4-notifications' ; export class SnsMockProvider implements Provider < SNSNotification > { constructor ( @ inject ( SNSBindings . Config , { optional : true , } ) private readonly snsConfig ? ) { } value ( ) { return { publish : async ( message ) => { return ; } , } ; } }