Skip to content

effect/vitest does not support it.extend API #5750

@tmcw

Description

@tmcw

What is the problem this feature would solve?

For a pretty big and complex codebase, the it.extend vitest API is super useful. Unfortunately, if the it in question is the it from @effect/vitest, the resulting function doesn't have it.effect like you usually get. So it isn't possible (afaict) to use both effect's nice test helpers as well as vitest's fixture support.

What is the feature you are proposing to solve the problem?

Supporting an api like

import { it } from "@effect/vitest";

const tt = it.extend({});

tt.effect()

What alternatives have you considered?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions