Skip to content

Replace Karma (now deprecated) with a new test runner #1038

Open
@doeg

Description

@doeg

React Modal uses Karma as its test runner. Karma, however, was deprecated in April 2023.

It looks like the recommended migration is to Jest and Web Test Runner as described here.

@diasbruno noted some caveats specific to React Modal over in #1036:

I thought of moving the test system to jest, but we need to run on the browser as we have a few trick bits to have more reliable tests (to detect hidden node and other things).

If we do move to SWC (as proposed in #1036) and Jest, it's worth noting that SWC has a drop-in replacement that's supposedly much faster than Jest. Given that this repo is fairly small, it may not be super relevant to us... but good to know nonetheless!

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