{"name":"@testing-library/user-event","version":"14.6.1","keywords":["react-testing-library","dom-testing-library","react","testing"],"author":{"name":"Giorgio Polvara","email":"polvara@gmail.com"},"license":"MIT","_id":"@testing-library/user-event@14.6.1","maintainers":[{"name":"testing-library-bot","email":"testinglibraryoss@gmail.com"},{"name":"kentcdodds","email":"me@kentcdodds.com"},{"name":"timdeschryver","email":"timdeschryver@outlook.com"},{"name":"patrickhulce","email":"patrick.hulce@gmail.com"},{"name":"dfcook","email":"dfcook@hotmail.com"},{"name":"gpx","email":"polvara@gmail.com"},{"name":"mpeyper","email":"mpeyper7@gmail.com"},{"name":"mihar-22","email":"rahim.alwer@gmail.com"},{"name":"pago","email":"patrick.gotthardt@trivago.com"},{"name":"cmckinstry","email":"carson.mckinstry@gmail.com"},{"name":"thymikee","email":"thymikee@gmail.com"},{"name":"brrianalexis","email":"brrianalexis.dev@gmail.com"},{"name":"jdecroock","email":"decroockjovi@gmail.com"},{"name":"mdjastrzebski","email":"mdjastrzebski@gmail.com"},{"name":"eps1lon","email":"silbermann.sebastian@gmail.com"},{"name":"phryneas","email":"mail@lenzw.de"}],"homepage":"https://github.com/testing-library/user-event#readme","bugs":{"url":"https://github.com/testing-library/user-event/issues"},"dist":{"shasum":"13e09a32d7a8b7060fe38304788ebf4197cd2149","tarball":"http://registry-npm.ywwl.com/@testing-library/user-event/download/@testing-library/user-event-14.6.1.tgz","fileCount":308,"integrity":"sha512-vq7fv0rnt+QTXgPxr5Hjc210p6YKq2kmdziLgnsZGgLJ9e6VAShx1pACLuRjd/AS/sr7phAR58OIIpf0LlmQNw==","signatures":[{"sig":"MEUCIQDle6pNndnx0K3EJTzX4TTUAPfQwpxw38TZ6pv3xt7fnwIgcnXyo+Icoafizh/s/tSPPCHwolfHFOo7uL8yzN5t3yU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":437874,"size":70756,"noattachment":false,"key":"/@testing-library/user-event/-/@testing-library/user-event-14.6.1.tgz"},"main":"./dist/cjs/index.js","types":"./dist/types/index.d.ts","module":"./dist/esm/index.js","engines":{"npm":">=6","node":">=12"},"exports":{".":{"types":"./dist/types/index.d.ts","default":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"./dist/cjs/*.js":{"types":"./dist/types/*.d.ts","import":"./dist/esm/*.js","default":"./dist/cjs/*.js"},"./dist/esm/*.js":{"types":"./dist/types/*.d.ts","default":"./dist/esm/*.js","require":"./dist/cjs/*.js"}},"gitHead":"d42954be66484bcf78486a298cc37f8a7c9e4bea","scripts":{"lint":"kcd-scripts lint","test":"kcd-scripts test","build":"scripts ts-build2 --cjs --target es2019","setup":"npm install && npm run validate -s","validate":"kcd-scripts typecheck","setup:env":"node --experimental-import-meta-resolve scripts/setup.js","test:jest":"kcd-scripts test","test:debug":"kcd-scripts --inspect-brk test --runInBand","test:update":"npm test -- --updateSnapshot --coverage","test:toolbox":"NODE_OPTIONS='--experimental-vm-modules --experimental-modules --experimental-import-meta-resolve' node scripts/test.js"},"_npmUser":{"name":"testing-library-bot","email":"testinglibraryoss@gmail.com"},"repository":{"url":"git+https://github.com/testing-library/user-event.git","type":"git"},"_npmVersion":"10.8.2","description":"Fire events the same way the user does","directories":{},"_nodeVersion":"20.18.1","dependencies":{},"typesVersions":{"*":{"*":["./dist/types/*.d.ts"],"dist/types/*":["./dist/types/*"],"dist/cjs/*.js":["./dist/types/*.d.ts"],"dist/esm/*.js":["./dist/types/*.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"is-ci":"^3.0.1","jsdom":"^20.0.3","react":"^18.0.0","expect":"^28.1.3","esbuild":"^0.19.10","ts-node":"^10.9.1","jest-mock":"^28.1.3","react-dom":"^18.0.0","css.escape":"^1.5.1","typescript":"^4.9.3","kcd-scripts":"^12.1.0","@types/react":"^18.0.25","jest-in-case":"^1.0.2","shared-scripts":"^1.5.1","istanbul-reports":"^3.1.5","@types/jest-in-case":"^1.0.3","istanbul-lib-report":"^3.0.0","@ph.fritsche/toolbox":"^1.0.0-alpha.11","@testing-library/dom":"^10.4.0","jest-serializer-ansi":"^1.0.3","istanbul-lib-coverage":"^3.2.0","@testing-library/react":"^16.1.0","esbuild-plugin-globals":"^0.2.0","istanbul-lib-source-maps":"^4.0.1","@testing-library/jest-dom":"^5.16.3","eslint-plugin-local-rules":"^1.3.2","@ph.fritsche/scripts-config":"^2.4.0","@types/sinonjs__fake-timers":"^8.1.2","eslint-import-resolver-typescript":"^3.5.2","@esbuild-plugins/node-modules-polyfill":"^0.2.2"},"peerDependencies":{"@testing-library/dom":">=7.21.4"},"_npmOperationalInternal":{"tmp":"tmp/user-event_14.6.1_1737480955374_0.774598002520209","host":"s3://npm-registry-packages-npm-production"},"readme":"<div align=\"center\">\n<h1>user-event</h1>\n\n<a href=\"https://www.joypixels.com/profiles/emoji/1f415\">\n  <img\n    height=\"80\"\n    width=\"80\"\n    alt=\"dog\"\n    src=\"https://raw.githubusercontent.com/testing-library/user-event/main/other/dog.png\"\n  />\n</a>\n\n<p>Fire events the same way the user does</p>\n\n<br />\n\n[**Read The Docs**](https://testing-library.com/docs/user-event/intro)\n\n<br />\n\n<!-- prettier-ignore-start -->\n[![Build Status][build-badge]][build]\n[![Code Coverage][coverage-badge]][coverage]\n[![version][version-badge]][package]\n[![downloads][downloads-badge]][npmtrends]\n[![MIT License][license-badge]][license]\n[![All Contributors][all-contributors-badge]](#contributors)\n[![PRs Welcome][prs-badge]][prs]\n[![Code of Conduct][coc-badge]][coc]\n[![Discord][discord-badge]][discord]\n<!-- prettier-ignore-end -->\n\n</div>\n\n> [!IMPORTANT] > **Considering this for new tests?** If your tests can run in a\n> real browser, prefer that over simulating events in jsdom.\n>\n> - [Vitest Browser Mode](https://vitest.dev/guide/browser/) includes a\n>   `userEvent` from `vitest/browser` that mirrors this API but drives a real\n>   browser (recommended over this package in browser mode).\n> - [Playwright](https://playwright.dev) has first-class locator actions\n>   (`click()`, `fill()`, `press()`, etc.) with auto-waiting - usually the\n>   better choice for E2E and Playwright component tests.\n>\n> This package is still reasonable for **jsdom/happy-dom** Testing Library\n> tests. Details and recommendations:\n> [#1319](https://github.com/testing-library/user-event/issues/1319).\n\n## The problem\n\nFrom\n[testing-library/dom-testing-library#107](https://github.com/testing-library/dom-testing-library/issues/107):\n\n> [...] it is becoming apparent the need to express user actions on a web page\n> using a higher-level abstraction than [`fireEvent`][fire-event]\n\n## The solution\n\n`user-event` tries to simulate the real events that would happen in the browser\nas the user interacts with it. For example `userEvent.click(checkbox)` would\nchange the state of the checkbox.\n\n> [The more your tests resemble the way your software is used, the more\n> confidence they can give you.][guiding-principle]\n\n## Issues\n\nLooking to contribute? Look for the [Good First Issue][good-first-issue] label.\n\n### 🐛 Bugs\n\nPlease file an issue for bugs, missing documentation, or unexpected behavior.\n\n[**See Bugs**][bugs]\n\n### 💡 Feature Requests\n\nPlease file an issue to suggest new features. Vote on feature requests by adding\na 👍. This helps maintainers prioritize what to work on.\n\n[**See Feature Requests**][requests]\n\n### ❓ Questions\n\nFor questions related to using the library, please visit a support community\ninstead of filing an issue on GitHub.\n\n- [Discord][discord]\n- [Stack Overflow][stackoverflow]\n\n## Contributors\n\nWe most sincerely thank [the people who make this project\npossible][contributors]. Contributions of any kind are welcome! 💚\n\n## License\n\n[MIT](LICENSE)\n\n<!-- prettier-ignore-start -->\n[npm]: https://www.npmjs.com\n[node]: https://nodejs.org\n[build-badge]: https://img.shields.io/github/actions/workflow/status/testing-library/user-event/ci.yml?branch=main&logo=github&style=flat-square\n[build]: https://github.com/testing-library/user-event/actions/workflows/ci.yml\n[coverage-badge]: https://img.shields.io/codecov/c/github/testing-library/user-event.svg?style=flat-square\n[coverage]: https://codecov.io/github/testing-library/user-event\n[version-badge]: https://img.shields.io/npm/v/@testing-library/user-event.svg?style=flat-square\n[package]: https://www.npmjs.com/package/@testing-library/user-event\n[downloads-badge]: https://img.shields.io/npm/dm/@testing-library/user-event.svg?style=flat-square\n[npmtrends]: https://www.npmtrends.com/@testing-library/user-event\n[license-badge]: https://img.shields.io/npm/l/@testing-library/user-event.svg?style=flat-square\n[license]: https://github.com/testing-library/user-event/blob/main/LICENSE\n[prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\n[prs]: http://makeapullrequest.com\n[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square\n[coc]: https://github.com/testing-library/.github/blob/main/CODE_OF_CONDUCT.md\n[all-contributors-badge]: https://img.shields.io/github/all-contributors/testing-library/user-event?color=orange&style=flat-square\n[guiding-principle]: https://twitter.com/kentcdodds/status/977018512689455106\n[bugs]: https://github.com/testing-library/user-event/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+sort%3Acreated-desc+label%3Abug\n[requests]: https://github.com/testing-library/user-event/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc+label%3Aenhancement\n[good-first-issue]: https://github.com/testing-library/user-event/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc+label%3Aenhancement+label%3A%22good+first+issue%22\n[fire-event]: https://testing-library.com/docs/dom-testing-library/api-events#fireevent\n[discord-badge]: https://img.shields.io/discord/723559267868737556.svg?color=7389D8&labelColor=6A7EC2&logo=discord&logoColor=ffffff&style=flat-square\n[discord]: https://discord.gg/testing-library\n[stackoverflow]: https://stackoverflow.com/questions/tagged/user-event\n[contributors]: https://github.com/testing-library/user-event/blob/main/CONTRIBUTORS.md\n<!-- prettier-ignore-end -->\n","publish_time":1737480955574,"_cnpm_publish_time":1737480955574,"dist-tags":{"alpha":"14.0.0-alpha.18","beta":"14.0.0-beta.14","latest":"14.6.13"}}