{"id":17803622,"url":"https://github.com/mattcheely/stencil-decorator-test-test","last_synced_at":"2025-04-02T04:42:55.362Z","repository":{"id":233140162,"uuid":"668885465","full_name":"MattCheely/stencil-decorator-test-test","owner":"MattCheely","description":"Example / check of decorator issues when testing StencilJS components","archived":false,"fork":false,"pushed_at":"2023-07-20T20:34:13.000Z","size":102,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T19:31:59.128Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MattCheely.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2023-07-20T20:33:35.000Z","updated_at":"2023-07-20T20:34:04.000Z","dependencies_parsed_at":"2024-04-14T04:43:05.126Z","dependency_job_id":"eca85675-4274-4083-b0c5-093c517218ae","html_url":"https://github.com/MattCheely/stencil-decorator-test-test","commit_stats":null,"previous_names":["mattcheely/stencil-decorator-test-test"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MattCheely%2Fstencil-decorator-test-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MattCheely%2Fstencil-decorator-test-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MattCheely%2Fstencil-decorator-test-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MattCheely%2Fstencil-decorator-test-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MattCheely","download_url":"https://codeload.github.com/MattCheely/stencil-decorator-test-test/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246758285,"owners_count":20828919,"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-27T12:47:27.058Z","updated_at":"2025-04-02T04:42:55.342Z","avatar_url":"https://github.com/MattCheely.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Broken Unit Tests With Decorator Example\n\nThis repo demonstrates a using a [basic TS decorator](src/utils/log-decorator.ts)\nin [a component](src/components/my-component/my-component.tsx). In stencil v4\nit's impossible to unit test this component, as Jest fails with an error:\n\n```\n ● Test suite failed to run\n\n    ReferenceError: _logResize_decorators is not defined\n\n\n\n      at src/components/my-component/my-component.tsx:145:25\n      at Object.\u003canonymous\u003e (src/components/my-component/my-component.tsx:147:3)\n      at Object.\u003canonymous\u003e (src/components/my-component/my-component.spec.ts:2:1)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattcheely%2Fstencil-decorator-test-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattcheely%2Fstencil-decorator-test-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattcheely%2Fstencil-decorator-test-test/lists"}