Skip to content

it.effect.fails doesn't exist (but docs say it does) #5934

Closed

Description

@tyler-dot-earth

What is the type of issue?

Documentation is incorrect

What is the issue?

The README for @effect/vitest states that it.effect.fails is a thing:

// Temporarily assert that the test for dividing by zero fails.
it.effect.fails("dividing by zero special cases", ({ expect }) =>

... but it isn't a real thing as far as i can tell:

Locally I'm seeing:

Diagnostics:
1. tsserver: Property 'fails' does not exist on type 'Tester<TestServices>'. [2339]

I noticed after reading it on @kitlangton's effect.solutions site:

Should it be a real thing? Is it a hallucination? Should it be using a different it.* method?

Where did you find it?

No response

Activity

  1. added
    documentation
    on Dec 26, 2025
  2. aymenhmaidiwastaken commented on Apr 9, 2026

    @aymenhmaidiwastaken
    Contributor

    Looks like it.effect.fails was added in #3973 — this issue can likely be closed. However, I noticed the code example in the README has a type annotation bug: divide is typed as returning number but actually returns Effect.Effect<number, string>. Opening a PR to fix that.

  3. fubhy commented on Jul 9, 2026

    @fubhy
    Member

    Closing as resolved: it.effect.fails now exists in the current @effect/vitest API and declarations, and the related README example fix was merged in #6163.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions