user-event

🐕 Simulate user events (by testing-library)

User-event Alternatives

Similar projects and alternatives to user-event

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better user-event alternative or higher similarity.

user-event reviews and mentions

Posts with mentions or reviews of user-event. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-09-10.
  • How do I test a button that change a state with jest ?
    1 project | /r/reactjs | 14 Dec 2022
    You probably want to be using user-event instead of fireEvent.
  • Mocking setTimeout with Jest
    2 projects | dev.to | 10 Sep 2022
    With userEvent it is different. Since version 14.0.0 the APIs always return a Promise. Because of that we need to make the whole test async and await on clicking with userEvent.
  • BDD and TDD testing for React-Node App
    1 project | /r/softwaretesting | 16 Feb 2022
    I just learned to do TDD by react testing library + jest + user event https://github.com/testing-library/user-event
  • Django, HTMX and Alpine.js: Modern Websites, JavaScript Optional
    4 projects | news.ycombinator.com | 23 Nov 2021
    I just tried running WinDirStat on the `node_modules` folder in a Create-React-App project I had lying around. Total size was 234 MB. Of that, 129MB was JS files. By far the biggest piece was TypeScript, which has 45MB of .js in 6 files making up its parsing and IDE language service implementation.

    Beyond that, the breakdown is:

    - .ts source files: 25MB

    - Sourcemaps: 23MB

    - Markdown: 15MB

    - JSON: 10MB

    It also looks like there's a 12MB Linux binary that was only in there as a publishing accident for the `user-event` library that has since been resolved ( https://github.com/testing-library/user-event/issues/266 ).

    Or, take Redux Toolkit, which I maintain. If you look at https://unpkg.com/browse/@reduxjs/[email protected]/ , the published package for our current version, it adds up to about 10MB on disk. But, that's because we ship three separate entry points (RTK core, RTK Query UI-agnostic core, RTK Query with React-specific additions), and for each entry point we compile the code to multiple file formats (CommonJS, ESM legacy, ESM modern, ESM with "dev" and "prod" already built in, UMD dev, UMD production), and each of those has sourcemaps. The actual amount of code that ends up in your bundle is about 20KB min+gz.

    So, it's a combination of many things: TS itself is big, libraries typically publish packages containing both the original source code plus multiple build artifacts to run in different environments, and packages also include various metadata and other files as well.

  • Comparing Enzyme with React Testing Library
    3 projects | dev.to | 4 Jan 2021
    To get away from testing our code implementation and get closer to testing how the application is actually used, we turn once again to React Testing Library. Instead of creating fake DOM event objects and simulating various change events, we have the ability to mimic how users would actually interact with the application using userEvent's, which are provided by the user-event library.
  • A note from our sponsor - WorkOS
    workos.com | 18 Apr 2024
    The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning. Learn more →

Stats

Basic user-event repo stats
5
2,113
5.6
about 2 months ago
The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
workos.com