{"name":"@vue/test-utils","version":"2.0.0-rc.14","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.15.4","@babel/preset-env":"^7.15.0","@babel/types":"^7.15.4","@rollup/plugin-commonjs":"^20.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^13.0.4","@rollup/plugin-replace":"^3.0.0","@types/jest":"27.0.1","@types/node":"16.7.10","@types/pretty":"^2.0.0","@vue/babel-plugin-jsx":"^1.0.7","@vue/compat":"3.2.4","@vue/compiler-dom":"3.2.9","@vue/compiler-sfc":"3.2.9","babel-jest":"^26.6.3","babel-preset-jest":"^27.0.6","husky":"^7.0.1","jest":"25.5.4","jsdom":"^17.0.0","jsdom-global":"^3.0.2","lint-staged":"^11.1.2","prettier":"^2.3.2","pretty":"^2.0.0","reflect-metadata":"^0.1.13","rollup":"^2.56.3","rollup-plugin-typescript2":"^0.30.0","ts-jest":"25.3.1","tslib":"2.3.1","typescript":"4.4.2","vitepress":"^0.17.0","vue":"3.2.9","vue-class-component":"^8.0.0-rc.1","vue-jest":"^5.0.0-alpha.10","vue-router":"^4.0.11","vue-tsc":"0.3.0","vuex":"^4.0.2"},"peerDependencies":{"vue":"^3.0.1"},"author":{"name":"Lachlan Miller","email":"lachlan.miller.1990@outlook.com"},"scripts":{"test":"yarn jest --runInBand tests/","test:compat":"yarn jest -c tests-compat/jest-compat.config.js --runInBand tests-compat/","test:build":"yarn jest --runInBand tests/ -use-build","test:compat:build":"yarn jest -c tests-compat/jest-compat.config.js --runInBand tests-compat/ -use-build","tsd":"tsc -p test-dts/tsconfig.tsd.json","build":"yarn rollup -c rollup.config.js","lint":"prettier -c \"(src|tests)/**/*.(ts?(x)|vue)\"","lint:fix":"yarn lint --write","docs:dev":"vitepress dev docs","docs:build":"vitepress build docs","vue-tsc":"vue-tsc --noEmit -p tsconfig.volar.json","prepublishOnly":"yarn build"},"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\n[Check the migration guide](https://next.vue-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://next.vue-test-utils.vuejs.org/).\n\n## Development\n\nGet started by running `yarn install`. You can run the tests with `yarn 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":"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.14","dist":{"shasum":"9da1be7b0e365ff5f945677da17bf6c8a7a83abd","integrity":"sha512-gmaeKqRCCMfxUtWN2L9fb9mYW5YocNc9KPj6F5uwlyXevlKELi40Oaz0PICYjzHI+7+dC4bV5Dg6Vjnf51VjvQ==","tarball":"http://registry-npm.ywwl.com/@vue/test-utils/download/@vue/test-utils-2.0.0-rc.14.tgz","fileCount":35,"unpackedSize":1405535,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhNXLKCRA9TVsSAnZWagAAfQ0P/2zfJQAGm/Lezas645Ua\nIEgKkMg27xgTxNUbYs6TPVwsar+I+Wmjrkw827vRH30Cl1d+aSLonla6lRVR\ndR6edSRoUqc3iibHXW8L8hUEt4mCmd+lOUaYr8whuqSr/1XsZvrGTcT6ukpj\nyABcNdhhe9FQvR5uOjYqeMHghCZRU5UeakVFulxQAEtD1HmKfOQQPOqB2iFZ\nXxzbHlUa/M/vv1gUdb+s0/UoHMP5VCewVxkcTmN44ZbCrUvyT8PMFxe3EQDb\ncpvNlcmhT8RPO1FpVfe6KbwbleEsgDCk2pO8jwB+zuXNn6fmXl8GVZLdcwdj\nYinacadx9KyJ7SsLumNe0W+h7JIZxGkU1/+UzU9WnfvpeUg9UaEBqcB7IPEd\nOEnS76EgaOqpMY0GIA8fJbRGH7GlWxFJzntF2XQgqEcbCSRtOhg8Dv1nUYdx\nAD4Fq8ZIKICWqarITadetaTjDRhKTObKD9aDgpxKQgHIBrjOZUunf603j8Xy\nzbZgwcj7VZK+gd0FRudp6pjn2EJ5bKhgmV6FJZs0xrQRx1A6F8YZUpU4/Qx/\nBFctqTvTiRDfqiow+hW/S3+jVWih3EW4f/VDzobdTNY04DKrQ9a0dKxvwG1R\ngJsX8nvR023h+Tr9ao6HNxDQ+qfQMkkbLkHXo+qpm3+2/6PURCrzlZ/fEsKE\nsKwS\r\n=e59H\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICVrDzjm0Nt66/mmTKDLY+Eqni0bmjKLkn9wgAujvEMWAiBDK0Yc5d2z9hMjCT4A64nNULy7XDWG94/VS/zL8/uk6w=="}],"size":298380,"noattachment":false,"key":"/@vue/test-utils/-/@vue/test-utils-2.0.0-rc.14.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.14_1630892746547_0.5476744433910903"},"_hasShrinkwrap":false,"publish_time":1630892746736,"_cnpm_publish_time":1630892746736,"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"}}