From a2bd26b9f32deb698cafb79de2c8d8917aa2bbbe Mon Sep 17 00:00:00 2001 From: Leandro Facchinetti Date: Thu, 19 Mar 2020 10:48:31 -0400 Subject: [PATCH] . --- README.md | 11 +++++++++++ src/test.ts | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ab307fb..97c5aef 100644 --- a/README.md +++ b/README.md @@ -13,3 +13,14 @@

Source.github/workflows/main.yml

+ +# Running Locally + +Install [Node.js](https://nodejs.org/) and run: + +```console +$ npm install +$ npm develop +``` + +The web server will be running at `http://localhost:8000` and the email server at `smtp://localhost:2525`. diff --git a/src/test.ts b/src/test.ts index 2c91b6d..3960b8c 100644 --- a/src/test.ts +++ b/src/test.ts @@ -1,5 +1,5 @@ import { webServer, emailServer, feedPath, feedEmail } from "."; -import { createTransport } from "nodemailer"; +import nodemailer from "nodemailer"; import fetch from "node-fetch"; import fs from "fs"; @@ -10,7 +10,7 @@ test("create feed", async () => { }); describe("receive email", () => { - const transporter = createTransport({ + const transporter = nodemailer.createTransport({ host: "localhost", port: 2525, tls: { rejectUnauthorized: false }