{"id":21944748,"url":"https://github.com/browserstack/jest-js-browserstack","last_synced_at":"2025-04-22T21:06:14.679Z","repository":{"id":38222503,"uuid":"458049209","full_name":"browserstack/jest-js-browserstack","owner":"browserstack","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-19T17:28:04.000Z","size":875,"stargazers_count":3,"open_issues_count":16,"forks_count":28,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-04-22T21:06:08.947Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/browserstack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-11T04:47:56.000Z","updated_at":"2024-12-22T13:33:09.000Z","dependencies_parsed_at":"2023-12-11T13:10:34.107Z","dependency_job_id":"ae720c26-6f34-4fce-9396-85e20e26902a","html_url":"https://github.com/browserstack/jest-js-browserstack","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/browserstack%2Fjest-js-browserstack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fjest-js-browserstack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fjest-js-browserstack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fjest-js-browserstack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/browserstack","download_url":"https://codeload.github.com/browserstack/jest-js-browserstack/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250324692,"owners_count":21411946,"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":[],"created_at":"2024-11-29T04:17:01.637Z","updated_at":"2025-04-22T21:06:14.661Z","avatar_url":"https://github.com/browserstack.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JestJS BrowserStack \u003cimg src=\"assets/browserstack.png\" width=25 height=25\u003e \u003cimg src=\"assets/jest.svg\" width=25 height=25\u003e\n\nJestJS integration with BrowserStack for E2E functional testing of UI using Selenium and [browserstack-node-sdk](https://www.npmjs.com/package/browserstack-node-sdk).\n\n## Run sample build\n\n---\n- Clone the repository\n- Install dependencies using, npm install or yarn install \n- Set your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings) in [browserstack.yml](browserstack.yml) `npx setup --username userName --key accessKey`\n- To run sample test, run `npm run sample-test` or `yarn run sample-test` \n- To run tests on private websites, \n   - set browserstackLocal: true at [browserstack.yml](browserstack.yml)\n   - run `npm run sample-local-test` or `yarn run sample-local-test`\n\n## Integrate your test suite\n\n---\n1. Install browserstack-node-sdk as a dev-dependency\n```\nnpm i -D browserstack-node-sdk\nor\nyarn add --dev browserstack-node-sdk\n```\n2. Setup\n```\nnpx setup --username userName --key accessKey\n```\n  * Adds a browserstack.yml file at root of your mocha project with your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings).\n  * Adds a new command for running tests on browserstack in scripts tag of package.json,\n  ```\n  \"scripts\": {\n    \"test\": \"jest ...args\",\n    \"browserstack-test\": \"browserstack-node-sdk jest ...args\"\n  },\n  ```\n\n## Notes\n\n---\n\n- You can view your test results on the [BrowserStack Automate Dashboard](https://automate.browserstack.com)\n- To test on a different set of browsers, check out our [platform configurator](https://browserstack.com/automate/capabilities)\n\n## Additional Resources\n\n---\n\n- [Documentation for writing Automate test scripts in JestJS](https://browserstack.com/docs/automate/selenium/getting-started/nodejs/jest-js)\n- [Browsers \u0026 mobile devices for selenium testing on BrowserStack](https://www.browserstack.com/list-of-browsers-and-platforms?product=automate)\n- [Using REST API to access information about your tests via the command-line interface](https://www.browserstack.com/automate/rest-api)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowserstack%2Fjest-js-browserstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrowserstack%2Fjest-js-browserstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowserstack%2Fjest-js-browserstack/lists"}