Skip to content

Fix deprecation warnings using vitest #2258

@pylipp

Description

@pylipp

Problem

We use vitest v3. When running our tests via pnpm test, we see the following warnings:
Using an object as a third argument is deprecated. Vitest 4 will throw an error if the third argument is not a timeout number. Please use the second argument for options. See more at https://vitest.dev/guide/migration
Please update all tests until the warning is not displayed anymore.

More instructions

  • write modern, correct TypeScript with valid Type annotations that don't result in any tsc errors
  • try to do as little code changes as possible to achieve the requested functionality
  • use Claude Opus 4 model to solve this
  • make sure all FE builds pass with pnpm -C front build and pnpm -C statviz build
  • make sure all FE tests pass with pnpm test

Metadata

Metadata

Assignees

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