Skip to content

Fixtures are not passed to the test function when chained with runIf or skipIf #4585

@JesusTheHun

Description

@JesusTheHun

Describe the bug

If you extend a test and then chain it with runIf/skipIf, fixtures are not available in the test functions.

Reproduction

https://stackblitz.com/edit/vitest-dev-vitest-haqyk8?file=src%2Fbasic.ts

System Info

System:
    OS: macOS 14.1.1
    CPU: (12) arm64 Apple M2 Max
    Memory: 4.63 GB / 64.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.16.1 - ~/.nvm/versions/node/v18.16.1/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v18.16.1/bin/yarn
    npm: 9.5.1 - ~/.nvm/versions/node/v18.16.1/bin/npm
    pnpm: 7.29.1 - ~/.nvm/versions/node/v18.16.1/bin/pnpm
  Browsers:
    Chrome: 119.0.6045.159
    Edge: 119.0.2151.72
    Safari: 17.1
  npmPackages:
    vitest: v1.0.0-beta.5 => 1.0.0-beta.5

Used Package Manager

npm

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions