vitest-dev / vitest-dev/vitest

Export FixtureFn and related types

Open
#6,209 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

p2-nice-to-have
Dominant language
TypeScript
Stars
17.1k
Forks
2k
Avg merge
1d 22h
Merged PRs (30d)
94

Description

Clear and concise description of the problem

I'd like to use the FixtureFn type so I can create a typesafe fixture factory. I can contribute a PR, but need a little bit of guidance.

Suggested solution

I think it's just a matter of adding some exports of the types from @vitest/runner to vitest, but I'm not sure where exactly it should be exported. I'm not super familiar with the codebase.

Alternative

If I wasn't using pnpm I guess I could just import them directly from @vitest/runner (or I'd have to install it directly), I can also copy-paste them into my codebase, but obviously I don't like this solution.

Additional context

No response

Validations

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how types from @vitest/runner are exposed through the vitest package entry points. Identify the exports needed for FixtureFn and its related types, then verify they can be imported from vitest without directly installing or importing @vitest/runner. The issue does not name specific files or tests, so repository guidance will be needed before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.