{"id":47980637,"url":"https://github.com/jagreehal/stencil-how-to-test-components","last_synced_at":"2026-04-04T11:04:45.131Z","repository":{"id":45704950,"uuid":"123485733","full_name":"jagreehal/stencil-how-to-test-components","owner":"jagreehal","description":"Examples of how to test Stencil components","archived":false,"fork":false,"pushed_at":"2025-11-21T20:52:59.000Z","size":746,"stargazers_count":69,"open_issues_count":1,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-21T22:21:45.770Z","etag":null,"topics":["jest","snapshot-testing","stenciljs","testing"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/jagreehal.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-03-01T19:59:59.000Z","updated_at":"2025-11-21T20:50:19.000Z","dependencies_parsed_at":"2025-10-24T10:18:48.717Z","dependency_job_id":"235760a2-54a9-4a06-9ffa-27766322af04","html_url":"https://github.com/jagreehal/stencil-how-to-test-components","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jagreehal/stencil-how-to-test-components","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jagreehal%2Fstencil-how-to-test-components","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jagreehal%2Fstencil-how-to-test-components/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jagreehal%2Fstencil-how-to-test-components/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jagreehal%2Fstencil-how-to-test-components/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jagreehal","download_url":"https://codeload.github.com/jagreehal/stencil-how-to-test-components/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jagreehal%2Fstencil-how-to-test-components/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31397056,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["jest","snapshot-testing","stenciljs","testing"],"created_at":"2026-04-04T11:04:42.707Z","updated_at":"2026-04-04T11:04:45.114Z","avatar_url":"https://github.com/jagreehal.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Examples of how to test Stencil Components using Jest and Puppeteer\n\n![Build](https://github.com/jagreehal/stencil-how-to-test-components/actions/workflows/main.yml/badge.svg)\n\nExamples of how to test [Stencil](https://stenciljs.com) components... both what works and doesn't!\n\n## [EventEmitter](https://stenciljs.com/docs/events)\n\n✅ can assert events have been raised\n\n## [Methods](https://stenciljs.com/docs/decorators)\n\n✅ can call methods on elements\n\n## [Props](https://stenciljs.com/docs/decorators)\n\n✅ can set props on element\n\n✅ can change prop value\n\n## Snapshots\n\n📷 can use snapshots\n\n## Added bonus!\n\nFor VSCode users checkout [launch.json](.vscode/launch.json) for debugging tests\n\n```js\n{\n    \"version\": \"0.2.0\",\n    \"configurations\": [{\n            \"type\": \"node\",\n            \"request\": \"launch\",\n            \"name\": \"E2E Test Current File\",\n            \"cwd\": \"${workspaceFolder}\",\n            \"program\": \"${workspaceFolder}/node_modules/.bin/stencil\",\n            \"args\": [\"test\", \"--e2e\", \"${relativeFile}\"],\n            \"console\": \"integratedTerminal\",\n            \"internalConsoleOptions\": \"neverOpen\",\n            \"disableOptimisticBPs\": true,\n            \"skipFiles\": [\n                \"${workspaceFolder}/node_modules/**/*.js\",\n                \"\u003cnode_internals\u003e/**/*.js\"\n            ]\n        },\n        {\n            \"type\": \"node\",\n            \"request\": \"launch\",\n            \"name\": \"Spec Test Current File\",\n            \"cwd\": \"${workspaceFolder}\",\n            \"program\": \"${workspaceFolder}/node_modules/.bin/stencil\",\n            \"args\": [\"test\", \"--spec\", \"${relativeFile}\"],\n            \"console\": \"integratedTerminal\",\n            \"internalConsoleOptions\": \"neverOpen\",\n            \"disableOptimisticBPs\": true,\n            \"skipFiles\": [\n                \"${workspaceFolder}/node_modules/**/*.js\",\n                \"\u003cnode_internals\u003e/**/*.js\"\n            ]\n        }\n    ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjagreehal%2Fstencil-how-to-test-components","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjagreehal%2Fstencil-how-to-test-components","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjagreehal%2Fstencil-how-to-test-components/lists"}