Skip to content

cleanup warnings are fired even if cleanup is fired manually #1253

Closed
@cloud-walker

Description

@cloud-walker
  • @testing-library/react version: 14.1
  • Testing Framework and version: Vitest 0.34
  • DOM Environment: jsdom

The v14.1 introduced a warning (#1244 ), that is yelling on my vitest based tests (notice that both warnings are fired):

image

I know about the cleanup thing and I use it manually as said by the docs, and I don't expect this warning to appear.

I've also tried the "STL_SKIP_AUTO_CLEANUP" envvar (typo in the docs, it should be RLT_), but it seems to not work, and feels weird to have to add an envvar to mute a warning

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