Skip to content

Code coverage does not work with sb vitest and analogjs #2296

@CMadden8

Description

@CMadden8

Please provide the environment you discovered this bug in.

Windows 10, angular nx repo.

Which area/package is the issue in?

Don't know / other

Description

We got the storybook analogjs package working for storybook vite and vitest for all projects in a nx angular repo.

The tests all pass with sb vitest. However we cannot get code coverage to map correctly, either with vitest istanbul or v8 coverage.

It seems to be mapping back to a version of transpiled js rather than the typescript file.

Please provide the exception or error you saw


Other information

No response

I would be willing to submit a PR to fix this issue

  • Yes
  • No

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions