Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMTP App: Tests for main business useCase #1347

Merged
merged 11 commits into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions apps/smtp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ After extraction is done, there will be:
1. Separate SMTP app
2. Separate Sendgrid app
3. Old emails-and-messages app will be deprecated and removed

# Development and testing

Easiest way to test configuration is to use [Mailtrap](https://mailtrap.io/)

This file was deleted.

114 changes: 0 additions & 114 deletions apps/smtp/src/modules/event-handlers/send-event-messages.use-case.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { AuthData } from "@saleor/app-sdk/APL";
import { SendEventMessagesUseCase } from "./send-event-messages.use-case";
import { SmtpEmailSender } from "../smtp/services/smtp-email-sender";
import { EmailCompiler } from "../smtp/services/email-compiler";
import { HandlebarsTemplateCompiler } from "../smtp/services/handlebars-template-compiler";
import { HtmlToTextCompiler } from "../smtp/services/html-to-text-compiler";
import { MjmlCompiler } from "../smtp/services/mjml-compiler";
import { SmtpConfigurationService } from "../smtp/configuration/smtp-configuration.service";
import { FeatureFlagService } from "../feature-flag-service/feature-flag-service";
import { SmtpMetadataManager } from "../smtp/configuration/smtp-metadata-manager";
import { createSettingsManager } from "../../lib/metadata-manager";
import { createInstrumentedGraphqlClient } from "../../lib/create-instrumented-graphql-client";
import { SmtpEmailSender } from "../../smtp/services/smtp-email-sender";
import { EmailCompiler } from "../../smtp/services/email-compiler";
import { HandlebarsTemplateCompiler } from "../../smtp/services/handlebars-template-compiler";
import { HtmlToTextCompiler } from "../../smtp/services/html-to-text-compiler";
import { MjmlCompiler } from "../../smtp/services/mjml-compiler";
import { SmtpConfigurationService } from "../../smtp/configuration/smtp-configuration.service";
import { FeatureFlagService } from "../../feature-flag-service/feature-flag-service";
import { SmtpMetadataManager } from "../../smtp/configuration/smtp-metadata-manager";
import { createSettingsManager } from "../../../lib/metadata-manager";
import { createInstrumentedGraphqlClient } from "../../../lib/create-instrumented-graphql-client";

export class SendEventMessagesUseCaseFactory {
createFromAuthData(authData: AuthData): SendEventMessagesUseCase {
Expand Down
Loading
Loading