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 }