Skip to content

[Bug]: Rstest is slower than Jest #767

@dmitriybo95

Description

@dmitriybo95

Version

System:
    OS: Linux 6.1 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
    CPU: (2) x64 AMD EPYC
    Memory: 2.55 GB / 4.01 GB
    Container: Yes
    Shell: Unknown
  npmPackages:
    @rstest/core: ^0.7.2 => 0.7.2

Details

On more complex React projects with many imports and using scss, rstest becomes slower than jest.
I've attached an example with two identical tests.
Average test execution time:
jest: 1.125s
rstest: 1.15s - 1.6s

Reproduce link

https://codesandbox.io/p/devbox/92swfz

Reproduce Steps

  1. go to https://codesandbox.io/p/devbox/92swfz
  2. fork
  3. run the commands npm run test:jest and npm run test:rstest several times.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions