Skip to content

test(arcjet): add tests for allowing and denying invalid emails#5769

Merged
trunk-io[bot] merged 1 commit intomainfrom
wooorm/allow-deny-invalid-email
Feb 3, 2026
Merged

test(arcjet): add tests for allowing and denying invalid emails#5769
trunk-io[bot] merged 1 commit intomainfrom
wooorm/allow-deny-invalid-email

Conversation

@wooorm-arcjet
Copy link
Copy Markdown
Contributor

@wooorm-arcjet wooorm-arcjet commented Feb 3, 2026

(this PR is easier to review with &w=1)

Invalid emails are always denied by the code.
That means allow: ["INVALID"] is equivalent to allow: [] and the inverse deny: [] means deny: ["INVALID"].
This tests that reality.
In the future, this may be changed. But first, tests.

Closes GH-3819.

(this PR is easier to review with `&w=1`)

Invalid emails are always denied by the code.
That means `allow: ["INVALID"]` is equivalent to `allow: []` and the inverse
`deny: []` to `deny: ["INVALID"]`.
This tests that reality.
In the future, this may be changed. But first, tests.

Closes GH-3819.
@wooorm-arcjet wooorm-arcjet requested a review from a team as a code owner February 3, 2026 13:16
@trunk-io
Copy link
Copy Markdown

trunk-io Bot commented Feb 3, 2026

😎 Merged successfully - details.

@trunk-io trunk-io Bot merged commit ed652f5 into main Feb 3, 2026
37 checks passed
@trunk-io trunk-io Bot deleted the wooorm/allow-deny-invalid-email branch February 3, 2026 15:46
@github-actions github-actions Bot mentioned this pull request Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Need better tests for deny configuration on validateEmail rule

2 participants