{"name":"@vue/test-utils","version":"2.0.0-rc.4","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.js","devDependencies":{"@babel/core":"^7.13.10","@babel/preset-env":"^7.13.10","@babel/types":"^7.12.12","@rollup/plugin-commonjs":"^17.1.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.0","@rollup/plugin-replace":"^2.4.1","@types/jest":"26.0.20","@types/node":"14.14.33","@vue/compiler-sfc":"3.0.7","babel-jest":"^26.6.3","babel-preset-jest":"^26.6.2","dom-event-types":"^1.0.0","husky":"^5.1.3","jest":"25.5.4","jsdom":"^16.5.0","jsdom-global":"^3.0.2","lint-staged":"^10.5.4","prettier":"^2.2.1","reflect-metadata":"^0.1.13","rollup":"^2.41.1","rollup-plugin-typescript2":"^0.30.0","ts-jest":"25.3.1","tsd":"0.14.0","typescript":"^4.2.3","vitepress":"^0.12.2","vue":"3.0.7","vue-class-component":"^8.0.0-rc.1","vue-jest":"^5.0.0-alpha.8","vue-router":"^4.0.4","vuex":"^4.0.0"},"peerDependencies":{"vue":"^3.0.1"},"author":{"name":"Lachlan Miller","email":"lachlan.miller.1990@outlook.com"},"scripts":{"test":"yarn jest --runInBand tests","test:build":"yarn jest --runInBand tests -use-build","tsd":"tsd","build":"yarn rollup -c rollup.config.js","lint":"prettier -c --parser typescript \"(src|tests)/**/*.ts?(x)\"","lint:fix":"yarn lint --write","docs:dev":"vitepress dev docs","docs:build":"vitepress build docs"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.ts":["prettier --parser=typescript --write"],"*.md":["prettier --write"]},"tsd":{"directory":"test-dts","compilerOptions":{"strict":false,"lib":["esnext","dom"]}},"readmeFilename":"README.md","readme":"# vue-test-utils-next\n\nThe next iteration of Vue Test Utils. It targets Vue 3.\n\n## Installation and Usage\n\n- yarn: `yarn add @vue/test-utils@next --dev`\n- npm: `npm install @vue/test-utils@next --save-dev`\n\nGet started with the [documentation](https://next.vue-test-utils.vuejs.org/).\n\n## Coming from Vue 2 + Vue Test Utils?\n\nWe plan on work on [some documentation to help people migrate](https://next.vue-test-utils.vuejs.org/migration/).\n\nAt this point you will have better luck trying this out with a brand new Vue 3 app, as opposed to upgrading an existing Vue 2 app. Feedback and bug reports are welcome!\n\n## Working with `.vue` files\n\nThere is [`vue-jest`](https://github.com/vuejs/vue-jest) for loading `.vue` files into Jest. The `next` branch contains support for Vue 3. Install it with `yarn add vue-jest@next`. It lacks support for some things, namely JSX.\n\nIf you don't want to configure things, you can download a repository with Vue 3, `@vue/test-utils@next`, `vue-jest@next` and TypeScript configured [here](https://github.com/lmiller1990/vtu-next-demo).\n\n## Documentation\n\nSee the [docs](https://next.vue-test-utils.vuejs.org/).\n\n## Development\n\nIt's a pretty small codebase at the moment. Get started by running `yarn install`. You can run the tests with `yarn test`. That's it!\n\nThere is still some work left to do. See issues for some basic TODOs, or the table at the bottom of this page.\n\n## Contributing\n\nWe plan on moving to RC sooner than later. If you want to add a feature, have a hack or ping someone in Discord to chat, or check out the issues and project board.\n\nThere's also some [work left to do in docs](https://github.com/vuejs/vue-test-utils-next/issues?q=is%3Aopen+is%3Aissue+label%3Adocumentation).\n\n## Comparison with Vue Test Utils beta (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            | ✅     | has not been tested vigorously. Please try it out.                                  |\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         | ⚰️     | may not make sense anymore since we do not mutate the global Vue instance in Vue 3. |\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":"The next iteration of Vue Test Utils. It targets 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.0.0-rc.4","dist":{"shasum":"536175be968e7c5741e9c95f117024d5053ea54c","integrity":"sha512-DocrrFP28M7NO7y7iGiX9sf9n1AKEqkxXO5wedtp5FkHiAkc0xfmD4lvxgi4re5+xw7Zzb9U/vrhXKQZ0I4Q9g==","tarball":"http://registry-npm.ywwl.com/@vue/test-utils/download/@vue/test-utils-2.0.0-rc.4.tgz","fileCount":34,"unpackedSize":493690,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSu+nCRA9TVsSAnZWagAATlUP/iQivyo9z1bhZQ8D00yi\nwPXKdrrlh+rZEMcQvOV6RnR489lJEn0VLN6k2ok/55AoCIm+uXNXaY3aTxIB\nkiiiG57UYtXxQwpFZOiE99DtA+94PAQ5S0cpsCoYyYLFNnKAyW6aFyhTeVTs\n+ZzaGk5TXOLp/i+TDfL9YAFUbzev4x22YuZCWQvpBs+cyHXwo2DmNdNlgHuX\nXSm/zBVFicRdzjsVju7SKpGMJUzEk+eSbSHgzmIlkV8XVVw0yFFCCr62e5IO\nhBwC0KeROvKfJeHoyPd/di3nR3uYwyPN7s6nl1MCIp/t8OVFuEBrMJPS4fWz\nXvvuvxECdj9IKAWPQrGYiChDapOj0naWnjJeHs9YF+juwvwjmp6kbT5DLeRy\nttv2f3xOQXCodb75PswNusUsME7DGzrxpCH9ZmMxAo6UzqVu6tkN/9rFtQfT\njyG9X8i0/eqnpkC197cG47vzS+u5dPJZ/DC15pb7o1S9s5kVdFozDO2lYJol\nz3u6uUNwtsvcvvFXAf7HQxoutJGqGroggRMK5IGSo1iWI/E+/4BtmH0AvQL5\nDg2NdvhYhePG6j7nkJlDskJRgH34F/b5/l0HST22eiMZ61jnJUlQe9SAmOX1\nt4qrogQl6nTpnJLqvUaaSsD0W4OYm/+gOjH7/RWhET+z8MrmOefCxOsc10nT\nNyXg\r\n=XPd4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEa8PVlvv3/0gWv0di1ue8Nwf7PAnwmDqPB3vVlKDFxYAiA70IZ/LFUGVCQ1BbOGgkNMypsZwEESq7Vs4Gib3rsf+A=="}],"size":112329,"noattachment":false,"key":"/@vue/test-utils/-/@vue/test-utils-2.0.0-rc.4.tgz"},"_npmUser":{"name":"lmiller1990","email":"lachlan.miller.1990@outlook.com"},"directories":{},"maintainers":[{"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.0.0-rc.4_1615523751295_0.3254527508757503"},"_hasShrinkwrap":false,"publish_time":1615523751411,"_cnpm_publish_time":1615523751411,"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"}}