Skip to content

Number of elements in the array are not decreasing #1740

@AmineBenaddiGitHub

Description

@AmineBenaddiGitHub

Describe the bug

https://stackblitz.com/edit/vitejs-vite-rrdgmum1?file=src%2FApp.test.jsx
When I run multiple times tests independently, the number of elements in the array: todosList keeps increasing.

Link to the blitz that caused the error

https://stackblitz.com/edit/vitejs-vite-rrdgmum1?file=README.md

Steps to reproduce

  1. Open a new terminal
  2. run npm tests: the first time it works, not the following ones (we should wait until all tests run and until the end)

Expected behavior

npm test works each time

Parity with Local

Screenshots

No response

Platform

Browser name  = Chrome
Full version  = 133.0.0.0
Major version = 133
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 139535715,
  "usedJSHeapSize": 123357471,
  "jsHeapSizeLimit": 4294705152
}
Hash = 7f809d15

Additional context

No response

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