Skip to content

Type error when using {retry: 2} in describe() #1998

@johnfraney

Description

@johnfraney

Describe the bug

I'm getting a type error when using the new retry option (#1929) of describe():

error TS2554: Expected 1-2 arguments, but got 3

Reproduction

This will run successfully but trigger a type error:

describe('tests', () => {
  ...
}, {retry: 2})

System Info

npx: installed 1 in 1.517s

  System:
    OS: macOS 12.5.1
    CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
    Memory: 2.67 GB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 14.18.0 - ~/.nvm/versions/node/v14.18.0/bin/node
    npm: 6.14.15 - ~/.nvm/versions/node/v14.18.0/bin/npm
    Watchman: 2022.05.16.00 - /usr/local/bin/watchman
  Browsers:
    Chrome: 104.0.5112.101
    Firefox Developer Edition: 105.0
    Safari: 15.6.1
  npmPackages:
    @vitejs/plugin-react: ^1.3.0 => 1.3.2 
    vite: ^2.9.5 => 2.9.14 
    vitest: ^0.23.0 => 0.23.1

Used Package Manager

npm

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions