{"id":17344611,"url":"https://github.com/jamonserrano/test-issue-44","last_synced_at":"2025-03-27T10:19:56.881Z","repository":{"id":147768954,"uuid":"481898764","full_name":"jamonserrano/test-issue-44","owner":"jamonserrano","description":"Test repo for jest-preset-stylelint issue #44","archived":false,"fork":false,"pushed_at":"2022-04-15T09:41:47.000Z","size":107,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-01T15:11:15.180Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jamonserrano.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":"2022-04-15T08:57:07.000Z","updated_at":"2022-04-15T09:12:38.000Z","dependencies_parsed_at":"2023-07-27T19:16:35.224Z","dependency_job_id":null,"html_url":"https://github.com/jamonserrano/test-issue-44","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/jamonserrano%2Ftest-issue-44","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamonserrano%2Ftest-issue-44/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamonserrano%2Ftest-issue-44/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamonserrano%2Ftest-issue-44/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamonserrano","download_url":"https://codeload.github.com/jamonserrano/test-issue-44/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245823316,"owners_count":20678173,"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-15T16:25:51.497Z","updated_at":"2025-03-27T10:19:56.876Z","avatar_url":"https://github.com/jamonserrano.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# test-issue-44\nTest repo for jest-preset-stylelint issue #44\n## To verify the issue\n1. Clone the `main` branch of this repo and run `npm i`.\n2. Open `src/index.spec.ts` in VSCode or any editor with TS type checking. ⚠️ Notice that on L11 even though the `code` property is missing from the test case there's no error shown.\n3. Uncomment the `code` property so that the build can run.\n4. Run `npm run build`. ⚠️ The build will fail with the following error:\n```sh\nnode_modules/jest-preset-stylelint/index.d.ts:160:6 - error TS2502: 'testRule' is referenced directly or indirectly in its own type annotation.\n\n160  var testRule: typeof testRule;\n         ~~~~~~~~\n\n\nFound 1 error in node_modules/jest-preset-stylelint/index.d.ts\n```\n\n## To verify the fix\n1. Check out the `fixed` branch of this repo and run `npm i` again. This branch uses `jamonserrano/jest-preset-stylelint` as dependency.\n2. Open `src/index.spec.ts` in VSCode or any editor with TS type checking. ✅ Notice that if the `code` property on L11 is commented out there's now an error:\n```sh\nProperty 'code' is missing in type '{ description: string; }' but required in type 'TestCase'.ts(2741)\n```\n3. Uncomment the `code` property so that the build can run.\n4. Run `npm run build`. ✅ The build now succeeds without errors.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamonserrano%2Ftest-issue-44","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamonserrano%2Ftest-issue-44","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamonserrano%2Ftest-issue-44/lists"}