Skip to content

Add StrykerJS testΒ #11

@nicojs

Description

@nicojs

Hi there πŸ™‹β€β™‚οΈ

I've found some issues in vitest, and now and again, I also find some regressions. @AriPerkkio pointed me here to contribute a test, maybe.

vitest-dev/vitest#4713 (comment)

However, StrykerJS is different from your run-of-the-mil repo since Stryker is a framework in which vitest is used via the @stryker-mutator/vitest-runner plugin.

The simplest way to add a test is to rebrand some of our e2e tests. Either create separate repos or add them directly here (they're relatively small projects). A test would then run StrykerJS via the command line and snapshot test the JSON result (which contains mutation score and other metrics).

Another question I have is how to install vitest inside these e2e test projects. Inside StrykerJS, we use install-local, a small package I'm maintaining. It can install a local package (not symlinking, but by running npm pack and installing that package), but I'm not sure if that is desirable or maintainable here since I see pnpm being used here.

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