{"id":15017405,"url":"https://github.com/ampme/parse-server-test-runner","last_synced_at":"2025-04-12T11:44:00.183Z","repository":{"id":57094678,"uuid":"100983423","full_name":"AmpMe/parse-server-test-runner","owner":"AmpMe","description":"A tool for programmatically starting Parse Server","archived":false,"fork":false,"pushed_at":"2018-10-30T18:39:24.000Z","size":9,"stargazers_count":19,"open_issues_count":4,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T06:34:22.516Z","etag":null,"topics":["jasmine","mocha","parse","parse-server"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AmpMe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-21T19:03:38.000Z","updated_at":"2023-03-09T07:08:17.000Z","dependencies_parsed_at":"2022-08-22T22:01:04.709Z","dependency_job_id":null,"html_url":"https://github.com/AmpMe/parse-server-test-runner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmpMe%2Fparse-server-test-runner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmpMe%2Fparse-server-test-runner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmpMe%2Fparse-server-test-runner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmpMe%2Fparse-server-test-runner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AmpMe","download_url":"https://codeload.github.com/AmpMe/parse-server-test-runner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248564089,"owners_count":21125405,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jasmine","mocha","parse","parse-server"],"created_at":"2024-09-24T19:50:24.874Z","updated_at":"2025-04-12T11:44:00.073Z","avatar_url":"https://github.com/AmpMe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"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', () =\u003e {\n   beforeAll((done) =\u003e {\n    const appId = 'test';\n    const masterKey = 'test';\n    const javascriptKey = 'test';\n\n    startParseServer({ appId, masterKey, javascriptKey })\n      .then(() =\u003e {\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) =\u003e {\n    stopParseServer()\n      .then(done).catch(done.fail);\n  });\n\n  beforeEach((done) =\u003e {\n    dropDB()\n      .then(done).catch(done.fail);\n  });\n\n  it('should work', (done) =\u003e {\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fampme%2Fparse-server-test-runner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fampme%2Fparse-server-test-runner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fampme%2Fparse-server-test-runner/lists"}