Skip to content

Running tests when SEND_EMAILS is set to true in config sends emails #37

Open
@martinzlocha

Description

@martinzlocha

Detailed Description

Make sure that tests don't send emails, this should be mocked out.

Context

Currently you need to check that you don't have SEND_EMAILS set to true before sending emails. This should be avoided if at all possible.

Possible Implementation

Either mocking or test.sh should set a temporary environment variable which should be checked and if set then emails shouldn't be sent. First method is preferred but either works.

Your Environment

  • Version used:
  • Environment name and version (e.g. Chrome 39, node.js 5.4):
  • Operating System and version (desktop or mobile):
  • Link to your project:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions