You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 16, 2024. It is now read-only.
Describe the bug
In our repo we have mocha-based unit tests and jest-based storybook tests. @storybook/[email protected] (namely #34) added @types/[email protected] as a dependency, which causes typescript to break quite thoroughly due to duplicate and conflicting definitions of (for example) it and afterEach.
To Reproduce
I don't have a minimal repro repo handy - if that's useful LMK and I can create one. I believe it ought to be trivial to reproduce this issue, though.
It may matter that we're using pnpm to install these packages, since (to my understanding) that means hoisting doesn't play a part.
Expected behavior
@storybook/jest should not pull in types that break a codebase that otherwise uses mocha for its testing.
Additional context
I'm not familiar with authoring libraries - I don't suppose it's as simple as having @types/jest be in devDependencies rather than dependencies?
The text was updated successfully, but these errors were encountered:
Hey everyone! In Storybook 8, this package functionality has been integrated to a new package called @storybook/test, which uses Vitest APIs for an improved experience. This issue should be solved or maybe it's not applicable anymore.
When upgrading to Storybook 8 with npx storybook@latest upgrade, you will get prompted and will get an automigration for the new package. Please migrate when you can! Thanks a lot <3
Describe the bug
In our repo we have mocha-based unit tests and jest-based storybook tests. @storybook/[email protected] (namely #34) added @types/[email protected] as a dependency, which causes typescript to break quite thoroughly due to duplicate and conflicting definitions of (for example)
it
andafterEach
.To Reproduce
I don't have a minimal repro repo handy - if that's useful LMK and I can create one. I believe it ought to be trivial to reproduce this issue, though.
It may matter that we're using
pnpm
to install these packages, since (to my understanding) that means hoisting doesn't play a part.Expected behavior
@storybook/jest should not pull in types that break a codebase that otherwise uses mocha for its testing.
Screenshots
N/A
System
Additional context
I'm not familiar with authoring libraries - I don't suppose it's as simple as having
@types/jest
be in devDependencies rather than dependencies?The text was updated successfully, but these errors were encountered: