Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jayphelps/jest-event-demo
https://github.com/jayphelps/jest-event-demo
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jayphelps/jest-event-demo
- Owner: jayphelps
- Created: 2021-08-03T22:39:46.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-08-03T22:42:00.000Z (over 3 years ago)
- Last Synced: 2024-10-19T17:58:32.742Z (3 months ago)
- Language: JavaScript
- Size: 5.94 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jest-event-demo
```
nvm use 16 # at least 15.4+
npm install
npx jestFAIL ./event.test.js
● Test suite failed to runReferenceError: Event is not defined
1 | // use it somehow
> 2 | Event;
| ^
3 | // ReferenceError: Event is not definedat Object. (setupJest.js:2:1)
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 0.126 s
Ran all test suites.
```Or 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.