{"id":18325078,"url":"https://github.com/maxdeviant/node-openid-client-is-plain-object-repro","last_synced_at":"2025-07-01T08:08:47.076Z","repository":{"id":63682842,"uuid":"569868297","full_name":"maxdeviant/node-openid-client-is-plain-object-repro","owner":"maxdeviant","description":"A reproduction of an issue with `openid-client` and (seemingly) Jest","archived":false,"fork":false,"pushed_at":"2023-04-18T16:26:09.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T15:20:39.281Z","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/maxdeviant.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-11-23T19:55:37.000Z","updated_at":"2023-07-25T15:04:26.000Z","dependencies_parsed_at":"2025-04-09T15:20:36.099Z","dependency_job_id":"f85c3d22-23c7-499b-9022-3bf30a41dcef","html_url":"https://github.com/maxdeviant/node-openid-client-is-plain-object-repro","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maxdeviant/node-openid-client-is-plain-object-repro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxdeviant%2Fnode-openid-client-is-plain-object-repro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxdeviant%2Fnode-openid-client-is-plain-object-repro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxdeviant%2Fnode-openid-client-is-plain-object-repro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxdeviant%2Fnode-openid-client-is-plain-object-repro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxdeviant","download_url":"https://codeload.github.com/maxdeviant/node-openid-client-is-plain-object-repro/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxdeviant%2Fnode-openid-client-is-plain-object-repro/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262925001,"owners_count":23385462,"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-05T18:36:44.145Z","updated_at":"2025-07-01T08:08:47.065Z","avatar_url":"https://github.com/maxdeviant.png","language":"TypeScript","readme":"# node-openid-client-is-plain-object-repro\n\nThis is a repository showcasing an issue when using `openid-client` together with Jest.\n\n## Setup\n\nInstall the dependencies:\n\n```\nyarn\n```\n\n## Running the Tests\n\nThis repository has tests setup with both Jest and Mocha to isolate the issue to Jest.\n\n### Jest\n\n```\nyarn test:jest\n```\n\nOne of the Jest tests should fail:\n\n```\nRepro: Jest\n  buildClient\n    when not using a workaround\n      ✕ returns the constructed client (176 ms)\n    when using a workaround\n      ✓ returns the constructed client (107 ms)\n```\n\n### Mocha\n\n```\nyarn test:mocha\n```\n\nThe Mocha tests will both pass:\n\n```\nRepro: Mocha\n  buildClient\n    when not using a workaround\n      ✔ returns the constructed client (141ms)\n    when using a workaround\n      ✔ returns the constructed client (114ms)\n```\n\n\n### Vitest\n\n```\nyarn test:vitest\n```\n\nThe Vitest tests will both pass:\n\n```\n✓ src/index.vitest.test.ts (2)\n\nTest Files  1 passed (1)\n    Tests  2 passed (2)\n  Start at  12:24:54\n  Duration  1.36s (transform 89ms, setup 0ms, collect 290ms, tests 198ms, environment 0ms, prepare 120ms)\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxdeviant%2Fnode-openid-client-is-plain-object-repro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxdeviant%2Fnode-openid-client-is-plain-object-repro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxdeviant%2Fnode-openid-client-is-plain-object-repro/lists"}