{"_id":"@adncorp/parse-server-test-runner","_rev":"2-0cc64cb3984c4f0d17b1d6b9c496a035","name":"@adncorp/parse-server-test-runner","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@adncorp/parse-server-test-runner","version":"1.0.0","description":"Helper functions for creating temporary parse-server instances","main":"src/index.js","scripts":{"test":"eslint ."},"engines":{"node":">=6"},"repository":{"type":"git","url":"git+https://github.com/AmpMe/parse-server-test-runner.git"},"keywords":["parse","parse-server","testing","tests"],"author":"","license":"MIT","bugs":{"url":"https://github.com/AmpMe/parse-server-test-runner/issues"},"homepage":"https://github.com/AmpMe/parse-server-test-runner#readme","dependencies":{"@adncorp/parse-server":"^2.6.1","bluebird":"^3.5.0","express":"latest","lodash":"^4.17.15","mongodb-runner":"^4.7.5","parse":"^2.9.1"},"devDependencies":{"eslint":"^4.2.0","eslint-config-google":"^0.9.1"},"gitHead":"ab89d24cb95b195bf860fb68910e1bede0d61e40","_id":"@adncorp/parse-server-test-runner@1.0.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-zWUP687TIs/l/cuNsyp++s7NIl3TW0JWKZyd/SduzC6HXFVvsNyX8imruBHkfOR2lklXMKrn/c8f/dqioohX6A==","shasum":"ea2b6adfe8f6a04cf18820822ac91dda848c80b8","tarball":"https://registry.npmjs.org/@adncorp/parse-server-test-runner/-/parse-server-test-runner-1.0.0.tgz","fileCount":5,"unpackedSize":16590,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1XJSCRA9TVsSAnZWagAAlP4QAIwvQ+XoA1d165YJ9kd9\nurTE4JMtCJmKaM0h4F5Erk/WVWc/xAJ62W9Bnr/dGIT329zZ8jegxe6CFrVL\n83jKBdyeFPzBFxf0dVpw0IACF96AW/8HDXKdgaDv9TH27Uvojvty7vn0t/Kt\ngncc3UXBgftpBj/JhTSz4aLWg/9Zz/Ka4lJnHzHcyD2T0dnmyY1YFkvvAkGB\niulC9A3lMYEI0+mMrpn0Czwm8p199h9UAyDV3mII65ODeyHILoi13Ji6pxb3\nHX74ZFIOBjJHFixc+DDAe5dImeh7uIgYFgFdTSfJwYeN1Xgi+NQdrE8SXszP\njn4CeYwLYBSL2nizufKj2nfLEdctbZRnVA5kBbBmoQN49Vnf69PbXMum5FnL\nzrd298srs6GoEBirMHGXy0HJMH4vgNughhZNlM8MF903sm2JScuGyjowEiIZ\n+TdYuRjxlGPXBx/ETdu/9f37S5b4ofn/xbaJMZrGLJv5UWQwB8FyhjbCc4/J\nNnwNp0w87rpS51UqspueYBuQaJqD9E2NGLmDU7JIpLCiSs97KXjM1FxM4QXg\noPd6a4LNfEe6NjcT+YSExtQ8ah9Y2WBpq+MpLs85J4SAARkHFsNWknN4Tqot\nnCTBHbW1w40xinHF5Abh+ztM/HCc3lEKit808h53vEhwPkZ+I3Eza2ynfCXH\nnhDB\r\n=mtWE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjioga9K1FSHOYNyvP91CXra/y5damK0gfr2hm0nBtUAIgZfDSwOlky71mVQ0SE2YbZgxyCIz38xoEbXQAbUcNLCM="}]},"maintainers":[{"name":"thirdparty","email":"thirdparty@adncorp.com"}],"_npmUser":{"name":"thirdparty","email":"thirdparty@adncorp.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-server-test-runner_1.0.0_1574269522156_0.2145898312465424"},"_hasShrinkwrap":false},"1.1.0":{"name":"@adncorp/parse-server-test-runner","version":"1.1.0","description":"Helper functions for creating temporary parse-server instances","main":"src/index.js","scripts":{"test":"eslint ."},"engines":{"node":">=6"},"repository":{"type":"git","url":"git+https://github.com/AmpMe/parse-server-test-runner.git"},"keywords":["parse","parse-server","testing","tests"],"author":"","license":"MIT","bugs":{"url":"https://github.com/AmpMe/parse-server-test-runner/issues"},"homepage":"https://github.com/AmpMe/parse-server-test-runner#readme","dependencies":{"@adncorp/parse-server":"^2.8.1","bluebird":"^3.5.0","express":"latest","lodash":"^4.17.15","mongodb-runner":"^4.7.5","parse":"^2.9.1"},"devDependencies":{"eslint":"^4.2.0","eslint-config-google":"^0.9.1"},"gitHead":"433ab24b0e33f11b41e616fcdf4f90fcc7ef646d","_id":"@adncorp/parse-server-test-runner@1.1.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-npHGel9K/pXLpJjKt7/lmVNKILxHZxnR9UwpfUNo0TVuM7xm24EkkrrhxEZirRxEoheDNMeX78FoYPOPF1Q3wA==","shasum":"400c360bc823856f48b78de66787cbaaaf5a5b59","tarball":"https://registry.npmjs.org/@adncorp/parse-server-test-runner/-/parse-server-test-runner-1.1.0.tgz","fileCount":6,"unpackedSize":16724,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeEZcqCRA9TVsSAnZWagAAmHMP/3QhMdX+bj9x0pQCMcgR\nzPJ4ZDfTpegtnSRYsED7LPsLl6RegcgTd+DcpbLV8GhLfevztdwsSoN5QfVn\nytS9zm9Z9Vw3UrHrLYle3PbNriHmP2tTmw+5hwXicf298eAbLeBaDa0C51KO\nHxD6fGEft3KwEVwcmQY6Bm1dmCGaHHFTK8xMBaiuPBkSE1R2rv6uRAy2iqps\n5LirtH7nyrkT04woGGdFd7kku9Vrz4S1xoLGlyU82wj/nmU3Nxr/li3AQNld\neBIvXwTYLqaHdEJRnPGsfM5Y0bgspdOidTyflEpbfT/P9QqCBNs7BtUIBQ47\nA3Mf88PxnykWGgvkELBspuFIPEwNarmc2Q0SOiEyojcTqrip5UFhOcDQhDCm\neV2pcuzrZTmMInIphZZwdcBrxFunDROATKJGuhSQeTCO69Kg3tmLuWmaMyqy\nB/lLtzoyRyhEh036bVYagF/V/KZMPtJXFf5aDwXH3etiEz90Vp1GZ1tOsFfR\nnQQUL6LqzeW2yMPFJvrjAWP+AjvRldxJHt43cxw7gZH6r1pWU1aNFTS+bzta\nc+zD4D52axd4IO6Wvdl2KHoDyd+8nfgI4/0GDdaW1DDLKsvWU6US01ayrsQ9\nMgrodYbV50HQmTqH+TgfUlrp+Yu7VZ0JDX/xramilb1fSHHMbefRl6RocPh/\nv31t\r\n=Ul1a\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBNSlhtFJWqNq2RGIjUI+2jzixhZq3eZlXBp7CzJ3V0oAiArwEpZrqPvwP4wYovbj3fuUs4GrCWsyJs4q1FQRWFlTg=="}]},"maintainers":[{"name":"thirdparty","email":"thirdparty@adncorp.com"}],"_npmUser":{"name":"thirdparty","email":"thirdparty@adncorp.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-server-test-runner_1.1.0_1578211113670_0.7905175815715959"},"_hasShrinkwrap":false}},"time":{"created":"2019-11-20T17:05:21.935Z","1.0.0":"2019-11-20T17:05:22.327Z","modified":"2022-04-04T11:33:53.353Z","1.1.0":"2020-01-05T07:58:33.781Z"},"maintainers":[{"name":"thirdparty","email":"thirdparty@adncorp.com"}],"description":"Helper functions for creating temporary parse-server instances","homepage":"https://github.com/AmpMe/parse-server-test-runner#readme","keywords":["parse","parse-server","testing","tests"],"repository":{"type":"git","url":"git+https://github.com/AmpMe/parse-server-test-runner.git"},"bugs":{"url":"https://github.com/AmpMe/parse-server-test-runner/issues"},"license":"MIT","readme":"# Parse Server Test Runner\n\n[![npm version](https://img.shields.io/npm/v/parse-server-test-runner.svg?style=flat)](https://www.npmjs.com/package/parse-server-test-runner)\n\nThis library allows [Parse Server](https://github.com/parse-community/parse-server) to be set up programmatically for testing purposes.\n\n## Example\nThis is an example of a Jasmine spec using `parse-server-test-runner`.\nThe timeout is set to 2 minutes because downloading MongoDB might take a few minutes.\n\n```javascript\nconst { startParseServer, stopParseServer, dropDB } = require('parse-server-test-runner');\n\n// ...\ndescribe('my spec', () => {\n   beforeAll((done) => {\n    const appId = 'test';\n    const masterKey = 'test';\n    const javascriptKey = 'test';\n\n    startParseServer({ appId, masterKey, javascriptKey })\n      .then(() => {\n        Parse.initialize(appId, masterKey, javascriptKey);\n        Parse.serverURL = 'http://localhost:30001/1';\n      })\n      .then(done).catch(done.fail);\n  }, 100 * 60 * 2);\n\n  afterAll((done) => {\n    stopParseServer()\n      .then(done).catch(done.fail);\n  });\n\n  beforeEach((done) => {\n    dropDB()\n      .then(done).catch(done.fail);\n  });\n\n  it('should work', (done) => {\n    const q = new Parse.Query('_Installation')\n    q.limit(5)\n      .find({ useMasterKey: true })\n      .then(console.log)\n      .then(done).catch(done.fail);\n  });\n});\n```\n\n","readmeFilename":"README.md"}