Skip to content

[FEATURE] Support Running With Vitest Instead of JestΒ #421

Closed
@ckifer

Description

@ckifer

Is your feature request related to a problem? Please describe.
I'd rather not need to have a jest setup to use reassure when I currently use vitest for testing

Describe the solution you'd like
Support configuring reassure with vitest or jest at consumers preference

Describe alternatives you've considered
N/A

Additional context
There is already a TEST_RUNNER_PATH env variable, but pointing that to the vitest binary complains about needing WASM

"test:perf": "TEST_RUNNER_PATH=./node_modules/.bin/vitest reassure",

ReferenceError: WebAssembly is not defined
    at file:///workplace/ckifer/recharts/node_modules/vite/dist/node/chunks/dep-2b82a1ce.js:16497:1125
    at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:530:24)
    at async main (file:///workplace/ckifer/recharts/node_modules/vitest/dist/cli-wrapper.js:61:5)

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