Installations
npm install @testing-library/user-event
Developer Guide
Typescript
Yes
Module System
CommonJS, ESM
Min. Node Version
>=12
Node Version
18.19.0
NPM Version
10.2.3
Score
95.1
Supply Chain
99.2
Quality
84.2
Maintenance
100
Vulnerability
100
License
Releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (94.81%)
JavaScript (5.19%)
Developer
Download Statistics
Total Downloads
1,268,480,309
Last Day
1,188,346
Last Week
9,115,022
Last Month
41,386,597
Last Year
471,665,876
GitHub Statistics
2,201 Stars
771 Commits
252 Forks
19 Watching
9 Branches
112 Contributors
Package Meta Information
Latest Version
14.5.2
Package Id
@testing-library/user-event@14.5.2
Unpacked Size
424.99 kB
Size
69.87 kB
File Count
305
NPM Version
10.2.3
Node Version
18.19.0
Publised On
29 Dec 2023
Total Downloads
Cumulative downloads
Total Downloads
1,268,480,309
Last day
-37.3%
1,188,346
Compared to previous day
Last week
-11.1%
9,115,022
Compared to previous week
Last month
-2.1%
41,386,597
Compared to previous month
Last year
26.8%
471,665,876
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Peer Dependencies
1
Dev Dependencies
30
The problem
From testing-library/dom-testing-library#107:
[...] it is becoming apparent the need to express user actions on a web page using a higher-level abstraction than
fireEvent
The solution
user-event
tries to simulate the real events that would happen in the browser
as the user interacts with it. For example userEvent.click(checkbox)
would
change the state of the checkbox.
The more your tests resemble the way your software is used, the more confidence they can give you.
Issues
Looking to contribute? Look for the Good First Issue label.
🐛 Bugs
Please file an issue for bugs, missing documentation, or unexpected behavior.
💡 Feature Requests
Please file an issue to suggest new features. Vote on feature requests by adding a 👍. This helps maintainers prioritize what to work on.
❓ Questions
For questions related to using the library, please visit a support community instead of filing an issue on GitHub.
Contributors
We most sincerely thank the people who make this project possible. Contributions of any kind are welcome! 💚
License
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
0 existing vulnerabilities detected
Reason
Found 2/20 approved changesets -- score normalized to 1
Reason
0 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/ci.yml:1
- Info: no jobLevel write permissions found
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/testing-library/user-event/ci.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/testing-library/user-event/ci.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/testing-library/user-event/ci.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/testing-library/user-event/ci.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/testing-library/user-event/ci.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:66: update your workflow using https://app.stepsecurity.io/secureworkflow/testing-library/user-event/ci.yml/main?enable=pin
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 4 third-party GitHubAction dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 26 are checked with a SAST tool
Score
3.9
/10
Last Scanned on 2024-12-16
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreOther packages similar to @testing-library/user-event
@types/testing-library__user-event
Stub TypeScript definitions entry for @testing-library/user-event, which provides its own types definitions
@pre-bundled/testing-library-user-event
Fire events the same way the user does
@riversilica_narendra/testing-library-user-event-13.5.0
michalchmura-testing-library__user-event
Simulate user events for react-testing-library