{"id":15825393,"url":"https://github.com/mcous/user-event-clipboard-leak","last_synced_at":"2025-04-01T09:38:39.061Z","repository":{"id":254173803,"uuid":"845714017","full_name":"mcous/user-event-clipboard-leak","owner":"mcous","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-21T19:36:14.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T03:25:51.411Z","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/mcous.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":"2024-08-21T19:32:51.000Z","updated_at":"2024-08-21T19:36:17.000Z","dependencies_parsed_at":"2024-08-21T22:00:42.451Z","dependency_job_id":"e10b8dec-6623-49e0-a36f-a405b49beda6","html_url":"https://github.com/mcous/user-event-clipboard-leak","commit_stats":null,"previous_names":["mcous/user-event-clipboard-leak"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcous%2Fuser-event-clipboard-leak","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcous%2Fuser-event-clipboard-leak/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcous%2Fuser-event-clipboard-leak/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcous%2Fuser-event-clipboard-leak/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcous","download_url":"https://codeload.github.com/mcous/user-event-clipboard-leak/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246620091,"owners_count":20806714,"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-05T09:09:08.922Z","updated_at":"2025-04-01T09:38:39.032Z","avatar_url":"https://github.com/mcous.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `@testing-library/user-event` clipboard state leak\n\nIn Vitest - or any test runner that does not expose global `afterEach` and `afterAll` functions - clipboard stub state is not reset between tests.\n\n```shell\ngh repo clone mcous/user-event-clipboard-leak\ncd user-event-clipboard-leak\nnpm install\nnpm run test:globals # pass\nnpm run test:no-globals # fail\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcous%2Fuser-event-clipboard-leak","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcous%2Fuser-event-clipboard-leak","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcous%2Fuser-event-clipboard-leak/lists"}