{"id":19150456,"url":"https://github.com/vicompany/component-unit-testing-workshop","last_synced_at":"2025-09-12T12:47:49.535Z","repository":{"id":150394213,"uuid":"329909597","full_name":"vicompany/component-unit-testing-workshop","owner":"vicompany","description":"Workshop to showcase how to test components","archived":false,"fork":false,"pushed_at":"2021-01-19T15:40:09.000Z","size":171,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-03T18:15:29.566Z","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/vicompany.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":"2021-01-15T12:44:58.000Z","updated_at":"2021-01-19T15:40:11.000Z","dependencies_parsed_at":"2023-05-18T12:31:09.417Z","dependency_job_id":null,"html_url":"https://github.com/vicompany/component-unit-testing-workshop","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/vicompany%2Fcomponent-unit-testing-workshop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicompany%2Fcomponent-unit-testing-workshop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicompany%2Fcomponent-unit-testing-workshop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicompany%2Fcomponent-unit-testing-workshop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vicompany","download_url":"https://codeload.github.com/vicompany/component-unit-testing-workshop/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240236198,"owners_count":19769571,"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-09T08:12:04.525Z","updated_at":"2025-02-22T20:45:31.832Z","avatar_url":"https://github.com/vicompany.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Workshop Component Unit Testing\nTesting components requires a different mindset and tools than testing regular javascript files. This repository includes some examples that highlight different ways of querying elements, testing rendering and dealing with events.\n\n## Used tools\n* [Jest](https://jestjs.io)\n* [testing-library](https://testing-library.com)\n* [testing-library/user-event](https://github.com/testing-library/user-event)\n\n## Framework\n* [Svelte](https://svelte.dev)\n\n## Commands\n* `npm install`: Install required dependencies\n* `npm run storybook`: Run storybook to view components\n* `npm test`: Run all available tests\n* `npm run test:watch`: Automatically re-run tests when .spec and .svelte files change\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvicompany%2Fcomponent-unit-testing-workshop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvicompany%2Fcomponent-unit-testing-workshop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvicompany%2Fcomponent-unit-testing-workshop/lists"}