diff --git a/.github/workflows/LintAndTestWorkflow.yml b/.github/workflows/LintAndTestWorkflow.yml index 1a35a00..8969fad 100644 --- a/.github/workflows/LintAndTestWorkflow.yml +++ b/.github/workflows/LintAndTestWorkflow.yml @@ -17,5 +17,6 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} + - run: npm ci - run: npm test - run: npm run lint diff --git a/src/tests/mailer.test.ts b/src/tests/mailer.test.ts index 0b56576..f3d37ab 100644 --- a/src/tests/mailer.test.ts +++ b/src/tests/mailer.test.ts @@ -55,8 +55,10 @@ describe("sendMail", () => { // Check that the nodemailer transport was created with the correct config expect(mockedNodemailer.createTransport).toHaveBeenCalledWith({ + service: "Gmail", host: process.env.SMTP_HOST, - port: 587, + port: parseInt(process.env.SMTP_PORT as string, 10), + secure: true, auth: { user: process.env.SMTP_USER, pass: process.env.SMTP_PASS,