Skip to content

Commit

Permalink
v6.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe committed Dec 7, 2023
1 parent 82ef14a commit d09ba27
Show file tree
Hide file tree
Showing 3 changed files with 670 additions and 1,600 deletions.
10 changes: 10 additions & 0 deletions docs/versioned_docs/version-6.5/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -1975,6 +1975,16 @@ console.log(testCacheClient.storage)
This is mainly helpful when you are testing for a very specific value, or have edgecases in how the serialization/deserialization works in the cache.
## Testing Mailer
If your project uses [RedwoodJS Mailer](./mailer.md) to send emails, you can [also write tests](./mailer.md#testing) to make sure that email:
* is sent to an sandbox inbox
* renders properly
* sets the expected to, from, cc, bcc, subject attributes based on the email sending logic
* checks that the html and text content is set correctly
Since these tests send mail to a sandbox inbox, you can be confident that no emails accidentally get sent into the wild as part of your test or CI runs.
## Wrapping Up
Expand Down
Loading

0 comments on commit d09ba27

Please sign in to comment.