![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@gooddata/test-storybook
Advanced tools
Visual regression testing for Storybook
Visual regression testing for Storybook
Note: Run screenshots tests only on CI to ensure the same environment (platform, browser, display pixel density, etc.)
stories/
folder both in *.jsx
or *.tsx
yarn add --dev @gooddata/test-storybook
"test-storybook": "test-storybook"
into "scripts"
section in your package.json
.gitignore
file:
test-storybook/
test-storybook/
folderimport { screenshotWrap } from '@gooddata/test-storybook';
in your stories and wrap elements that you want to test in the function. -r
parameter, i.e. yarn test-storybook -r
. These will be discarded later and replaced with CI outputs.yarn test-storybook
from the root of your repository in which you want to test Storybook.extended test - storybook
.
The link to CI html report appears in GitHub PR commenthttps://ci.intgdc.com/job/.../123/artifact/test-storybook/tests/
stories/__screenshots__/
folder with new onegit checkout master && git pull upstream master
npm version [major|minor|patch]
git commit -am "test-storybook - Release v[your_version]"
npm publish
git push upstream master
yarn test
yarn validate
FAQs
Visual regression testing for Storybook
The npm package @gooddata/test-storybook receives a total of 0 weekly downloads. As such, @gooddata/test-storybook popularity was classified as not popular.
We found that @gooddata/test-storybook demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 58 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.