{"id":18378532,"url":"https://github.com/cloudscape-design/jest-preset","last_synced_at":"2026-04-02T00:55:43.989Z","repository":{"id":46167717,"uuid":"501210484","full_name":"cloudscape-design/jest-preset","owner":"cloudscape-design","description":"Jest presets for Cloudscape Design System","archived":false,"fork":false,"pushed_at":"2025-03-17T20:20:07.000Z","size":785,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-03-22T07:42:50.368Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://cloudscape.design/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudscape-design.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-08T10:52:56.000Z","updated_at":"2025-03-17T14:26:10.000Z","dependencies_parsed_at":"2024-01-05T12:24:07.277Z","dependency_job_id":"6eb48b88-1865-4824-a1fd-570be1bed00d","html_url":"https://github.com/cloudscape-design/jest-preset","commit_stats":{"total_commits":18,"total_committers":11,"mean_commits":"1.6363636363636365","dds":0.8333333333333334,"last_synced_commit":"1a32019f7b77a39d63b2c42e433b36be7ce4e203"},"previous_names":[],"tags_count":34,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudscape-design%2Fjest-preset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudscape-design%2Fjest-preset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudscape-design%2Fjest-preset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudscape-design%2Fjest-preset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudscape-design","download_url":"https://codeload.github.com/cloudscape-design/jest-preset/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247563901,"owners_count":20958971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T00:34:05.022Z","updated_at":"2026-04-02T00:55:43.955Z","avatar_url":"https://github.com/cloudscape-design.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Jest presets for Cloudscape Design System\n\nThis 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.\n\nCloudscape 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.\n\nCloudscape was built for and is used by [Amazon Web Services (AWS)](https://aws.amazon.com/) 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.\n\nYou can find [documentation about testing](https://cloudscape.design/get-started/testing/frameworks/) in the Cloudscape documentation website.\n\nBrowse the [components repository](https://github.com/cloudscape-design/components) of Cloudscape Design System.\n\n## Getting help\n\nYou can [create bug reports or feature requests](https://github.com/cloudscape-design/jest-preset/issues/new/choose), or [start a discussion](https://github.com/cloudscape-design/components/discussions) 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.\n\n\n### Getting started\n\nInstall this package with the npm package manager of your choice, for example `npm install --save-dev @cloudscape-design/jest-preset`.\n\nMake sure that you also have `babel-jest` installed.\n\nAnd `package.json` along with its peer dependency babel-jest of the same version as the jest you are using:\n\n```\n\"devDependencies\": {\n    \"@cloudscape-design/jest-preset\": \"^2.0.0\",\n    \"babel-jest\": \"{your jest version}\"\n}\n```\n\nIn your `jest.config.json`:\n\n```\n{\n  \"preset\": \"@cloudscape-design/jest-preset\"\n}\n```\n\n### Advanced usage\n\nIf you already have another preset in your configuration, you can use `@cloudscape-design/jest-preset/merge` helper to merge them together:\n\n```js\nconst mergePresets = require('@cloudscape-design/jest-preset/merge');\nconst tsPreset = require('ts-jest/jest-preset');\nconst cloudscapePreset = require('@cloudscape-design/jest-preset');\n\nmodule.exports = mergePresets(tsPreset, cloudscapePreset, {\n  // ... your config\n});\n```\n\nNote that if multiple presets provide `transformIgnorePatterns` property, you need to merge it manually. By default,\nmerge operation extends the ignore paths, you need to make sure that the modules defined in [jest-preset.js](./jest-preset.js) remain unignored.\n\n### Troubleshooting\n\n#### I added preset, but still seeing \"Jest encountered an unexpected token\" issue\n\nIt means that Jest preset could not apply the configuration properly.\n\n1. Check if you have `transformIgnorePatterns` defined in your custom configuration. If so, it requires a manual merge with configuration defined in [jest-preset.js](./jest-preset.js).\n2. Check if you are overwriting `transform` property. It should merge the new paths in, not replace. Check the \"Advanced usage\" section above for an example.\n\n## Contributing\n\nThe [contribution guidelines](https://github.com/cloudscape-design/jest-preset/blob/main/CONTRIBUTING.md) contains information on how to contribute, as well as our support model and versioning strategy.\n\n## License\n\nThis project is licensed under the [Apache 2.0 License](/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudscape-design%2Fjest-preset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudscape-design%2Fjest-preset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudscape-design%2Fjest-preset/lists"}