Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@cloudscape-design/jest-preset
Advanced tools
This package contains [Jest presets](https://jestjs.io/docs/en/configuration#preset-string) used to test an application based on the [Cloudscape Design System](https://cloudscape.design/) React components.
This package contains Jest presets used to test an application based on the Cloudscape Design System React components.
Cloudscape is an open source design system for building intuitive, engaging, and inclusive web cloud experiences at scale. It consists of an extensive set of guidelines to create user experiences, along with the design resources and front-end components to streamline implementation.
Cloudscape was built for and is used by Amazon Web Services (AWS) products and services. We created it in 2016 to improve the user experience across AWS web applications, and also to help teams implement those applications faster. Since then, we have continued enhancing the system based on customer feedback and research.
You can find documentation about testing in the Cloudscape documentation website.
Browse the components repository of Cloudscape Design System.
You can create bug reports or feature requests, or start a discussion to ask a question. To minimize duplicates, we recommend that you search for existing bug reports, feature requests, or discussions before initiating a new thread.
Install this package with the npm package manager of your choice, for example npm install --save-dev @cloudscape-design/jest-preset
.
Make sure that you also have babel-jest
installed.
And package.json
along with its peer dependency babel-jest of the same version as the jest you are using:
"devDependencies": {
"@cloudscape-design/jest-preset": "^2.0.0",
"babel-jest": "{your jest version}"
}
In your jest.config.json
:
{
"preset": "@cloudscape-design/jest-preset"
}
If you already have another preset in your configuration, you can use @cloudscape-design/jest-preset/merge
helper to merge them together:
const mergePresets = require('@cloudscape-design/jest-preset/merge');
const tsPreset = require('ts-jest/jest-preset');
const cloudscapePreset = require('@cloudscape-design/jest-preset');
module.exports = mergePresets(tsPreset, cloudscapePreset, {
// ... your config
});
Note that if multiple presets provide transformIgnorePatterns
property, you need to merge it manually. By default,
merge operation extends the ignore paths, you need to make sure that the modules defined in jest-preset.js remain unignored.
It means that Jest preset could not apply the configuration properly.
transformIgnorePatterns
defined in your custom configuration. If so, it requires a manual merge with configuration defined in jest-preset.js.transform
property. It should merge the new paths in, not replace. Check the "Advanced usage" section above for an example.The contribution guidelines contains information on how to contribute, as well as our support model and versioning strategy.
This project is licensed under the Apache 2.0 License.
FAQs
This package contains [Jest presets](https://jestjs.io/docs/en/configuration#preset-string) used to test an application based on the [Cloudscape Design System](https://cloudscape.design/) React components.
We found that @cloudscape-design/jest-preset demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.