{"id":16836536,"url":"https://github.com/orangecms/antd-jest-demo","last_synced_at":"2025-04-11T05:10:53.854Z","repository":{"id":84739123,"uuid":"76628145","full_name":"orangecms/antd-jest-demo","owner":"orangecms","description":"demo to show how to test React components with some extras","archived":false,"fork":false,"pushed_at":"2016-12-16T06:32:08.000Z","size":4,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T03:12:40.148Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orangecms.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-16T06:31:07.000Z","updated_at":"2023-05-30T04:56:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"82e11dd9-695c-4ee5-89c0-a5f66185cdfd","html_url":"https://github.com/orangecms/antd-jest-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orangecms%2Fantd-jest-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orangecms%2Fantd-jest-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orangecms%2Fantd-jest-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orangecms%2Fantd-jest-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orangecms","download_url":"https://codeload.github.com/orangecms/antd-jest-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248345266,"owners_count":21088244,"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-10-13T12:13:43.275Z","updated_at":"2025-04-11T05:10:53.846Z","avatar_url":"https://github.com/orangecms.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## About 🐈\nThis is a demo to show how to test React components with some extras.\n\nInvolved are React, [Ant Design](http://ant.design), Babel, Jest, Enzyme, webpack, some custom CSS, cats, and emoji 🐢.\n\n### Configuration\nHere comes the tricky part. These are some things you need to consider when testing\nwith Jest:\n* Jest automatically mocks your modules, you need to [unmock them](https://facebook.github.io/jest/docs/api.html#jestunmockmodulename) - and actually, they are stubbed\n* Jest can [use tools like webpack](http://facebook.github.io/jest/docs/tutorial-webpack.html) to preprocess files\n\n## Try it out 🚀\n### Installation\nJust install the Node modules:\n```bash\nnpm i\n```\n\n### Linting\nESlint is configured as a lint script in `package.json`:\n```bash\nnpm run lint\n```\n\n### Run the tests\nThe test script in `package.json` will run Jest using the default path `__tests__`:\n```bash\nnpm test\n```\n\n### Preview the components\nComponents can be previewed via [React Storybook](http://getstorybook.io).\nIt will be available on (http://localhost:9900) if you run:\n```bash\nnpm start\n```\n\n## LICENSE\n\n![WTFPL](http://www.wtfpl.net/wp-content/uploads/2012/12/wtfpl-badge-4.png) WTFPL (http://www.wtfpl.net/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forangecms%2Fantd-jest-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forangecms%2Fantd-jest-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forangecms%2Fantd-jest-demo/lists"}