Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
@storybook/jest
Advanced tools
Storybook integration for Jest, instrumented for use with the Interactions addon.
This is likely an issue with newer package managers.
The @storybook/jest
package provides some type augmentations so that expect
has extended matchers coming from Testing Library. The way it works, is that @storybook/jest
depends on @testing-library/jest-dom
, a package that depends on @types/testing-library__jest-dom
. That @types package should be hoisted in your project in order for your types to fully work. As a result, you should have a node_modules/@types/testing-library__jest-dom
directory. If you don't, then the types won't exist and that's why you're having issues.
For instance, if you have a yarn project, hoisting happens automatically. However if you're using pnpm, @types
are not hoisted automatically, you will have to add a .npmrc
file with the following setting:
// .npmrc
public-hoist-pattern[]=@types*
Otherwise, installing @types/testing-library__jest-dom
as a direct dependency should have the same effect and fix your issue.
FAQs
Instrumented version of Jest for Storybook Interactions
The npm package @storybook/jest receives a total of 277,451 weekly downloads. As such, @storybook/jest popularity was classified as popular.
We found that @storybook/jest demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 31 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.