{"id":17439623,"url":"https://github.com/jayphelps/jest-event-demo","last_synced_at":"2025-09-17T16:33:35.269Z","repository":{"id":145543811,"uuid":"392475441","full_name":"jayphelps/jest-event-demo","owner":"jayphelps","description":null,"archived":false,"fork":false,"pushed_at":"2021-08-03T22:42:00.000Z","size":6233,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-10T21:25:20.890Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/jayphelps.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":"2021-08-03T22:39:46.000Z","updated_at":"2021-08-04T08:00:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"4bcf34b3-2d84-4e14-9826-d2bef2e9dcee","html_url":"https://github.com/jayphelps/jest-event-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jayphelps/jest-event-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayphelps%2Fjest-event-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayphelps%2Fjest-event-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayphelps%2Fjest-event-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayphelps%2Fjest-event-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jayphelps","download_url":"https://codeload.github.com/jayphelps/jest-event-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayphelps%2Fjest-event-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275623477,"owners_count":25498340,"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","status":"online","status_checked_at":"2025-09-17T02:00:09.119Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-17T13:57:33.307Z","updated_at":"2025-09-17T16:33:32.843Z","avatar_url":"https://github.com/jayphelps.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jest-event-demo\n\n```\nnvm use 16 # at least 15.4+\nnpm install\nnpx jest\n\n FAIL  ./event.test.js\n  ● Test suite failed to run\n\n    ReferenceError: Event is not defined\n\n      1 | // use it somehow\n    \u003e 2 | Event;\n        | ^\n      3 | // ReferenceError: Event is not defined\n\n      at Object.\u003canonymous\u003e (setupJest.js:2:1)\n\nTest Suites: 1 failed, 1 total\nTests:       0 total\nSnapshots:   0 total\nTime:        0.126 s\nRan all test suites.\n```\n\nOr if you comment out or remove the setupJest.js you'll find the `event.test.js` tests fail because `typeof Event` and `typeof EventTarget` are both undefined.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjayphelps%2Fjest-event-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjayphelps%2Fjest-event-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjayphelps%2Fjest-event-demo/lists"}