{"_id":"@belsrc/vue-test-functional-wrapper","_rev":"2-5180e8e64d16da3dbe262dbff47af25c","name":"@belsrc/vue-test-functional-wrapper","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@belsrc/vue-test-functional-wrapper","publishConfig":{"access":"public"},"version":"1.0.0","description":"Wrap a functional component in order to test against it","main":"index.js","scripts":{"lint":"npx eslint -c .eslintrc.js --fix --color --ignore-path .eslintignore \"index.js\"","prettier":"npx prettier --config .prettierrc.js --write \"index.js\"","clean":"npm-run-all prettier lint","test":"jest --verbose"},"jest":{"testPathIgnorePatterns":["/node_modules/"],"testEnvironment":"jsdom"},"repository":{"type":"git","url":"git+https://github.com/belsrc/vue-test-functional-wrapper.git"},"bugs":{"url":"https://github.com/belsrc/vue-test-functional-wrapper/issues"},"homepage":"https://github.com/belsrc/vue-test-functional-wrapper#readme","author":{"name":"bryan@bryanckizer.com"},"license":"MIT","keywords":["vue","unit testing","testing","test","functional component","component"],"devDependencies":{"@babel/core":"7.4.5","@babel/preset-env":"7.4.5","@babel/register":"7.4.4","@vue/test-utils":"1.0.0-beta.29","babel-eslint":"10.0.1","eslint":"5.16.0","eslint-config-belsrc":"1.0.1","jest":"24.8.0","npm-run-all":"4.1.5","prettier":"1.18.2","vue":"2.6.10","vue-template-compiler":"2.6.10"},"gitHead":"17139c16028a1de3bdf7bd4f9284560b444a0a93","_id":"@belsrc/vue-test-functional-wrapper@1.0.0","_nodeVersion":"10.15.3","_npmVersion":"6.8.0","dist":{"integrity":"sha512-OAM4RszR4Cb7vhzOjrpolIwSBttk5EKalvaq0F9WxOZayzQSmIM4TFh459BXbd2ApuZams7VbReRLjLB6iexXA==","shasum":"317358c80c46c949f5a0fb438053c92d8cf0fb0a","tarball":"https://registry.npmjs.org/@belsrc/vue-test-functional-wrapper/-/vue-test-functional-wrapper-1.0.0.tgz","fileCount":4,"unpackedSize":3926,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdBXzfCRA9TVsSAnZWagAAM2AQAJcvFrX3YXlLl9vXa1ET\nmd1/BGuqrr5YZRyJpQmCYl2cfzX1i5FQ34tfWBkTz1iv3FkTvqwSSR54IyHr\nKRPamxtKdi0Ux19Oel99nYms4nFTSlXtvY7TUVTHHXkl7JXUepGMRYD9EC1+\nBcnNbRH4w5MT7NTCXLuiSkCAu6erBwMXWTOdDZjbq5H7uxlY4sByGRMiLT7J\nf3g2Gk3UZlnrsPWrK/dUvPd60y1pS+15DQzw1Da4xSub5yNS8opjFBDi1LXs\nRZto/Qogn43sDYJJnT/I0ARsviziLDJLRJaP9MOn2xTjSjeks2sxv+yY4ivw\nuSAKoXrbdcEo6tFMd2tJ44PPI7xU0LJQxXFIqDWU/rqdoxVB/9udHTefGgz7\nww3R8w3M+GnPmWO4QQavckKZs0Yg75z+KqOq7sRbwsiEN0nXc6a4L7fGsW+z\nxmkCW8oQ3Ti7V4DjnmhzSlJf9lQ7E/Q7uIxrHTPbw6l2PoDogTHQ279QtgNk\nKqE7ttNE8hCnYhIpmIdHeaXteYjThy5MPgXWKmWBZ6ZD7PwehJ2fwitZ+D7k\nn5+tOGH+OXsCeKzOkILAbJgI3D6TsIV9jlHBCTOsUkbkJyPAjj66g2YUI+Mn\nj6EY5k2PkZV8UemX2KXzlzfpXIL3Pply+V8EPzdsb7dR4rFobXVQjAaV3Ijl\nPxhT\r\n=Bufw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbkzqMFl7Nsk4U0y9e/dqhxNm9OHIA1usTC6c0wf4NJgIhAKPJQFN4gH91t9TNBnM0F+JB+Wxacr+KOXeqpUQFUnj2"}]},"maintainers":[{"name":"belsrc","email":"bryan@bryanckizer.com"}],"_npmUser":{"name":"belsrc","email":"bryan@bryanckizer.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-test-functional-wrapper_1.0.0_1560640735001_0.3703672532473632"},"_hasShrinkwrap":false},"1.0.1":{"name":"@belsrc/vue-test-functional-wrapper","publishConfig":{"access":"public"},"version":"1.0.1","description":"Wrap a functional component in order to test against it","main":"dist/index.js","scripts":{"lint":"npx eslint -c .eslintrc.js --fix --color --ignore-path .eslintignore \"src/**/*.js\"","prettier":"npx prettier --config .prettierrc.js --write \"src/**/*.js\"","clean":"npm-run-all prettier lint","test":"jest --verbose","coverage":"jest --verbose --coverage && codecov","build":"npx babel src --out-dir dist --ignore **/*.test.js","release":"npx release-it","pub":"npm-run-all build release"},"jest":{"coverageDirectory":"coverage","testPathIgnorePatterns":["/node_modules/"],"testEnvironment":"jsdom"},"release-it":{"git":{"requireUpstream":false,"addUntrackedFiles":false,"requireCleanWorkingDir":true,"changelog":"git log --pretty=format:\"* %s (%h)\" ${latestTag}...HEAD","commitMessage":"chore(build): release ${version}","tagName":"v${version}","tagAnnotation":"Release v${version}"}},"repository":{"type":"git","url":"git+https://github.com/belsrc/vue-test-functional-wrapper.git"},"bugs":{"url":"https://github.com/belsrc/vue-test-functional-wrapper/issues"},"homepage":"https://github.com/belsrc/vue-test-functional-wrapper#readme","author":{"name":"bryan@bryanckizer.com"},"license":"MIT","keywords":["vue","unit testing","testing","test","functional component","component"],"devDependencies":{"@babel/cli":"7.4.4","@babel/core":"7.4.5","@babel/plugin-transform-modules-commonjs":"7.4.4","@babel/preset-env":"7.4.5","@babel/register":"7.4.4","@vue/test-utils":"1.0.0-beta.29","babel-eslint":"10.0.1","babel-plugin-annotate-pure-calls":"0.4.0","codecov":"3.5.0","eslint":"5.16.0","eslint-config-belsrc":"1.0.1","jest":"24.8.0","npm-run-all":"4.1.5","prettier":"1.18.2","release-it":"12.3.0","vue":"2.6.10","vue-template-compiler":"2.6.10"},"gitHead":"208342f06a8c9374914cf16eb91934398fe4e8e6","_id":"@belsrc/vue-test-functional-wrapper@1.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.14.1","_npmUser":{"name":"belsrc","email":"bryan@bryanckizer.com"},"dist":{"integrity":"sha512-xghWC7Awai2pZpOFs2x7bUVlIqaGKqYxK+67qblzXbvfI7sl2aStt7AsTNCC+xGLRnaN2zmE6zEdc6wRXCX+XQ==","shasum":"9d7b1f18a0d786e49318e804c975eba23f0a9995","tarball":"https://registry.npmjs.org/@belsrc/vue-test-functional-wrapper/-/vue-test-functional-wrapper-1.0.1.tgz","fileCount":4,"unpackedSize":5693,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdB5umCRA9TVsSAnZWagAALKMP/25Bcsje3v+eKzjQX2B5\nwqNyLbQ0MmIjMieCEecZ2pMYpM70/GbLZM1DusuEynNGW1rt18sjx511d4ed\nChsLdSqUIgS7Rxa3cARnZdMU/xSZ3JOQ2+YxSAuWdghEzr4BzblfDW4zZ0LN\nbLgZPr18HHTUwdNj1vo78Lns1/aR9d8cm1JCyOEhu6hrcZNFNePEhi+3xzKr\ndCM6Cn/TWErjfUxf9+tb5g1X6sOWjsiBKjCUWRuOQSj8fN2DEV4SpMVt21eA\nVcL+oJX8ZFeyuOcUuk9m613GRyRlN3qjVQh1VtsrcEL3yHjng+5T8hyRUmwH\nK44Ozgyx5P+Rzeupi3vI4C6x08YVF/SjAQ54VjeQjeH2N16AKLYQmR0lEd6E\n/tpcDv6Z58ap/VmjQDcuv3e+sjuWRHsxGHiWADjo2Xg8GFy4VufdXa+iBIOB\ndm3Jt/tJJ657nQOp7YNzinrM/jNwIJLVSLWl46Q1yoNJQPqU9aOQylH6cDJE\nLgEsV03l3vQy7vA5R784Y1Fl35I1h5andLx9lHVIfP2AgiNYOxePK1OW/01L\nvvNSoadildW2660uZL/7rgfhhuHHwL3d254FEmgi7kCJ1EcOghVgks5QoVIw\ngIo9zCREHHybERYrQH7CV80KokXw3zucNluDgsCnso5ry7u7wYdCc/5omg+Q\nK7iC\r\n=Q8gf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmqGjP0mbS4gEgaLscaIx1CkwpVrpOH1JvLmbijc4UHQIhALS6GL90q+FQR82SxT8ZWU1aDr2H5bFmPdo9/Xy6JXje"}]},"maintainers":[{"name":"belsrc","email":"bryan@bryanckizer.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-test-functional-wrapper_1.0.1_1560779685434_0.0018635442625531962"},"_hasShrinkwrap":false}},"time":{"created":"2019-06-15T23:18:54.955Z","1.0.0":"2019-06-15T23:18:55.129Z","modified":"2022-04-04T18:20:42.319Z","1.0.1":"2019-06-17T13:54:45.572Z"},"maintainers":[{"name":"belsrc","email":"bryan@bryanckizer.com"}],"description":"Wrap a functional component in order to test against it","homepage":"https://github.com/belsrc/vue-test-functional-wrapper#readme","keywords":["vue","unit testing","testing","test","functional component","component"],"repository":{"type":"git","url":"git+https://github.com/belsrc/vue-test-functional-wrapper.git"},"author":{"name":"bryan@bryanckizer.com"},"bugs":{"url":"https://github.com/belsrc/vue-test-functional-wrapper/issues"},"license":"MIT","readme":"# vue-test-functional-wrapper\n\n[![Build Status](https://img.shields.io/travis/belsrc/vue-test-functional-wrapper.svg?style=flat-square)](https://travis-ci.org/belsrc/vue-test-functional-wrapper)\n[![Maintainability](https://img.shields.io/codeclimate/maintainability/belsrc/vue-test-functional-wrapper.svg?style=flat-square)](https://codeclimate.com/github/belsrc/vue-test-functional-wrapper/maintainability)\n[![Code Coverage](https://img.shields.io/codecov/c/github/belsrc/vue-test-functional-wrapper/master.svg?style=flat-square)](https://codecov.io/gh/belsrc/vue-test-functional-wrapper/branch/master)\n[![Known Vulnerabilities](https://img.shields.io/snyk/vulnerabilities/github/belsrc/vue-test-functional-wrapper.svg?style=flat-square)](https://app.snyk.io/org/belsrc/project/0623bc36-ba88-4751-b85c-6f93c28b5f7c)\n[![Last Commit](https://img.shields.io/github/last-commit/belsrc/vue-test-functional-wrapper/master.svg?style=flat-square)](https://github.com/belsrc/vue-test-functional-wrapper/commits/master)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://github.com/belsrc/vue-test-functional-wrapper/pulls)\n\n\n\n## Install\n\n```bash\nnpm i -D @belsrc/vue-test-functional-wrapper\n```\n\n## Use\n\n```js\n// functional-component.test.js\nimport wrapFunctional from '@belsrc/vue-test-functional-wrapper';\nimport FunctionalComponent from './functional-component';\n\nlet wrapped;\n\ndescribe('FunctionalComponent', () => {\n  beforeEach(() => {\n    wrapped = wrapFunctional(FunctionalComponent, {\n      methods: { click() { this.$emit('click'); } },\n      on(vm) { return { click: vm.click } },\n    });\n  });\n\n  describe('Rendering', () => {\n    test('should do somthing', () => {\n      const wrapper = mount(wrapped, {\n        propsData: { foo: 'bar' },\n      });\n\n      ...\n    });\n  });\n});\n```\n\n## LICENCE\n\n[MIT](LICENCE)\n","readmeFilename":"README.md"}