{"name":"@vue/test-utils","version":"2.4.0-alpha.2","license":"MIT","main":"dist/vue-test-utils.cjs.js","unpkg":"dist/vue-test-utils.browser.js","types":"dist/index.d.ts","module":"dist/vue-test-utils.esm-bundler.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/vue-test-utils.esm-bundler.mjs","browser":"./dist/vue-test-utils.browser.js","require":"./dist/vue-test-utils.cjs.js","default":"./dist/vue-test-utils.cjs.js"},"./package.json":"./package.json"},"dependencies":{"js-beautify":"1.14.6","vue-component-type-helpers":"1.6.5"},"devDependencies":{"@rollup/plugin-commonjs":"25.0.0","@rollup/plugin-json":"6.0.0","@rollup/plugin-node-resolve":"15.1.0","@rollup/plugin-replace":"5.0.2","@rollup/plugin-typescript":"11.1.1","@types/js-beautify":"1.13.3","@types/node":"18.16.16","@typescript-eslint/eslint-plugin":"5.59.8","@typescript-eslint/parser":"5.59.8","@vitejs/plugin-vue":"4.2.3","@vitejs/plugin-vue-jsx":"3.0.1","@vitest/coverage-c8":"0.31.4","@vue/compat":"3.3.4","@vue/compiler-dom":"3.3.4","@vue/compiler-sfc":"3.3.4","@vue/server-renderer":"3.3.4","c8":"7.14.0","eslint":"8.41.0","eslint-config-prettier":"8.8.0","eslint-plugin-prettier":"4.2.1","husky":"8.0.3","jsdom":"22.1.0","jsdom-global":"3.0.2","lint-staged":"13.2.2","prettier":"2.8.8","reflect-metadata":"0.1.13","rollup":"3.23.0","tslib":"2.5.2","typescript":"5.0.4","unplugin-vue-components":"0.25.0","vite":"4.3.9","vitepress":"0.22.4","vitest":"0.31.4","vue":"3.3.4","vue-class-component":"8.0.0-rc.1","vue-router":"4.2.2","vue-tsc":"1.6.5","vuex":"4.1.0"},"peerDependencies":{"@vue/compiler-dom":"^3.0.1","@vue/server-renderer":"^3.0.1","vue":"^3.0.1"},"peerDependenciesMeta":{"@vue/compiler-dom":{"optional":true},"@vue/server-renderer":{"optional":true}},"author":{"name":"Lachlan Miller","email":"lachlan.miller.1990@outlook.com"},"scripts":{"test":"vitest","test:coverage":"vitest --coverage","test:watch":"vitest --watch","test:build":"vitest --mode test-build","tsd":"tsc -p test-dts/tsconfig.tsd.json","build":"rollup -c rollup.config.ts --bundleConfigAsCjs","prepare":"rollup -c rollup.config.ts --bundleConfigAsCjs","lint":"eslint --ext .ts src/ tests/","lint:fix":"pnpm run lint --fix","docs:dev":"vitepress dev docs","docs:build":"vitepress build docs","vue-tsc":"vue-tsc --noEmit -p tsconfig.volar.json","prepublishOnly":"pnpm run build"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.ts":["eslint --fix"],"*.md":["prettier --write"]},"repository":{"type":"git","url":"git+https://github.com/vuejs/test-utils.git"},"homepage":"https://github.com/vuejs/test-utils","pnpm":{"peerDependencyRules":{"ignoreMissing":["@algolia/client-search","@types/react","react","react-dom"]}},"readmeFilename":"README.md","readme":"# Vue Test Utils\n\nComponent testing utils for Vue 3.\n\n## Languages\n\n[🇫🇷 French version of this README.md](https://github.com/vuejs/test-utils/tree/main/docs/fr/README.md)\n\n## Installation and Usage\n\n- yarn: `yarn add @vue/test-utils --dev`\n- npm: `npm install @vue/test-utils --save-dev`\n\nGet started with the [documentation](https://test-utils.vuejs.org/).\n\n## Coming from Vue 2 + Test Utils v1?\n\n[Check the migration guide](https://test-utils.vuejs.org/migration/). It's still a work in progress. If you find a problem or something that doesn't work that previously did in Vue Test Utils v1, please open an issue.\n\n## Documentation\n\nSee the [docs](https://test-utils.vuejs.org/).\n\n## Development\n\nGet started by running `pnpm install`. You can run the tests with `pnpm test`. That's it!\n\n## Comparison with Vue Test Utils v1 (targeting Vue 2)\n\nThis is table for those coming from VTU 1, comparing the two APIs. Some things are still a work in progress.\n\n- ✅ - implemented\n- ❌ - not yet implemented\n- ⚰️ - will not be implemented (if you have a compelling use case, please open an issue)\n\n### Mounting Options\n\n| option           | status | notes                                                                             |\n|------------------|--------|-----------------------------------------------------------------------------------|\n| data             | ✅      |\n| slots            | ✅      |\n| mocks            | ✅      | nested in `global`                                                                |\n| propsData        | ✅      | now called `props`                                                                |\n| provide          | ✅      | nested in `global`                                                                |\n| mixins           | ✅      | (new!) nested in `global`                                                         |\n| plugins          | ✅      | (new!) nested in `global`                                                         |\n| component        | ✅      | (new!) nested in `global`                                                         |\n| directives       | ✅      | (new!) nested in `global`                                                         |\n| stubs            | ✅      |\n| attachToDocument | ✅      | renamed `attachTo`. See [here](https://github.com/vuejs/vue-test-utils/pull/1492) |\n| attrs            | ✅      |\n| scopedSlots      | ⚰️     | scopedSlots are merged with `slots` in Vue 3                                      |\n| context          | ⚰️     | different from Vue 2, does not make sense anymore.                                |\n| localVue         | ⚰️     | no longer required - Vue 3 there is no global Vue instance to mutate.             |\n| listeners        | ⚰️     | no longer exists in Vue 3                                                         |\n| parentComponent  | ⚰️     |\n\n### Wrapper API (mount)\n\n| method         | status | notes                                                                                                                               |\n|----------------|--------|-------------------------------------------------------------------------------------------------------------------------------------|\n| attributes     | ✅      |\n| classes        | ✅      |\n| exists         | ✅      |\n| find           | ✅      | only `querySelector` syntax is supported. `find(Comp)` under discussion [here](https://github.com/vuejs/vue-test-utils/issues/1498) |\n| emitted        | ✅      |\n| findAll        | ✅      | see above. `.vm` is different to Vue 2. We are exploring options.                                                                   |\n| get            | ✅      |\n| html           | ✅      |\n| setValue       | ✅      | works for select, checkbox, radio button, input, textarea. Returns `nextTick`.                                                      |\n| text           | ✅      |\n| trigger        | ✅      | returns `nextTick`. You can do `await wrapper.find('button').trigger('click')`                                                      |\n| setProps       | ✅      |\n| props          | ✅      |\n| setData        | ✅      |\n| destroy        | ✅      | renamed to `unmount` to match Vue 3 lifecycle hook name.                                                                            |\n| props          | ✅      |\n| isVisible      | ✅      |\n| contains       | ⚰️     | use `find`                                                                                                                          |\n| emittedByOrder | ⚰️     | use `emitted`                                                                                                                       |\n| setSelected    | ⚰️     | now part of `setValue`                                                                                                              |\n| setChecked     | ⚰️     | now part of `setValue`                                                                                                              |\n| is             | ⚰️     |\n| isEmpty        | ⚰️     | use matchers such as [this](https://github.com/testing-library/jest-dom#tobeempty)                                                  |\n| isVueInstance  | ⚰️     |\n| name           | ⚰️     |\n| setMethods     | ⚰️     |\n","description":"Component testing utils for Vue 3.","licenseText":"The MIT License (MIT)\n\nCopyright (c) 2021-present vuejs\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","_id":"@vue/test-utils@2.4.0-alpha.2","dist":{"shasum":"cc30998bf5544787bf0c49c893173adbf7e91509","integrity":"sha512-P1XgbB8sEIZvzG+9hJGL25fhjO+P4TXTZC9ApM7NAUqqzLEP1tIa7hMtp6XFfi+M6Taw5xa2/Fwt3OG2gk80Xg==","tarball":"http://registry-npm.ywwl.com/@vue/test-utils/download/@vue/test-utils-2.4.0-alpha.2.tgz","fileCount":47,"unpackedSize":1474976,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICMsXD2+VLgVmT2pvQ7IqrajEgKoAhxz4TcxYWoG7i8fAiAyNMSVvDbqd7BRkkn/YBI4ec6/u9r4KjwobQhDlviDFQ=="}],"size":316443,"noattachment":false,"key":"/@vue/test-utils/-/@vue/test-utils-2.4.0-alpha.2.tgz"},"_npmUser":{"name":"lmiller1990","email":"lachlan.miller.1990@outlook.com"},"directories":{},"maintainers":[{"name":"yyx990803","email":"yyx990803@gmail.com"},{"name":"eddyerburgh","email":"edward.yerburgh@gmail.com"},{"name":"dobromir-hristov","email":"dobromir92@gmail.com"},{"name":"lmiller1990","email":"lachlan.miller.1990@outlook.com"},{"name":"afontcu","email":"afontcu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/test-utils_2.4.0-alpha.2_1685964759595_0.002565343403365672"},"_hasShrinkwrap":false,"publish_time":1685964759858,"_cnpm_publish_time":1685964759858,"dist-tags":{"2.0.0-alpha.0":"2.0.0-alpha.0","2.0.0-alpha.1":"2.0.0-alpha.1","2.0.0-alpha.2":"2.0.0-alpha.2","2.0.0-alpha.3":"2.0.0-alpha.3","2.0.0-alpha.4":"2.0.0-alpha.4","2.0.0-alpha.8":"2.0.0-alpha.8","2.0.0-beta.1":"2.0.0-beta.1","2.0.0-beta.10":"2.0.0-beta.10","2.0.0-beta.12":"2.0.0-beta.12","2.0.0-beta.13":"2.0.0-beta.13","2.0.0-beta.2":"2.0.0-beta.2","2.0.0-beta.3":"2.0.0-beta.3","2.0.0-beta.4":"2.0.0-beta.4","2.0.0-beta.5":"2.0.0-beta.5","2.0.0-beta.7":"2.0.0-beta.7","2.0.0-beta.8":"2.0.0-beta.8","2.0.0-beta.9":"2.0.0-beta.9","2.0.0-rc.0":"2.0.0-rc.0","2.0.0-rc.1":"2.0.0-rc.1","2.0.0-rc.10":"2.0.0-rc.10","2.0.0-rc.11":"2.0.0-rc.11","2.0.0-rc.12":"2.0.0-rc.12","2.0.0-rc.14":"2.0.0-rc.14","2.0.0-rc.16":"2.0.0-rc.16","2.0.0-rc.18":"2.0.0-rc.18","2.0.0-rc.2":"2.0.0-rc.2","2.0.0-rc.3":"2.0.0-rc.3","2.0.0-rc.4":"2.0.0-rc.4","2.0.0-rc.5":"2.0.0-rc.5","2.0.0-rc.6":"2.0.0-rc.6","2.0.0-rc.7":"2.0.0-rc.7","2.0.0-rc.8":"2.0.0-rc.8","2.0.0-rc.9":"2.0.0-rc.9","2.4.0-alpha.0":"2.4.0-alpha.0","latest":"2.5.1","legacy":"1.3.6","next":"2.4.0-alpha.2","v2.4.0-alpha.2":"2.4.0-alpha.2"}}