{"id":21638088,"url":"https://github.com/purecloudlabs/ember-chromium","last_synced_at":"2025-04-11T16:42:18.276Z","repository":{"id":37663180,"uuid":"118511170","full_name":"purecloudlabs/ember-chromium","owner":"purecloudlabs","description":"Ember chromium","archived":false,"fork":false,"pushed_at":"2025-01-03T06:34:11.000Z","size":69,"stargazers_count":0,"open_issues_count":4,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-25T12:51:21.037Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/purecloudlabs.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-22T20:28:36.000Z","updated_at":"2025-01-03T06:34:15.000Z","dependencies_parsed_at":"2025-01-03T07:26:31.121Z","dependency_job_id":"5aa55b98-f183-4385-801e-0fd18aa905a7","html_url":"https://github.com/purecloudlabs/ember-chromium","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purecloudlabs%2Fember-chromium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purecloudlabs%2Fember-chromium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purecloudlabs%2Fember-chromium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purecloudlabs%2Fember-chromium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/purecloudlabs","download_url":"https://codeload.github.com/purecloudlabs/ember-chromium/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248442295,"owners_count":21104149,"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-25T04:08:09.006Z","updated_at":"2025-04-11T16:42:18.248Z","avatar_url":"https://github.com/purecloudlabs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ember Chromium\n\nEmber chromium is an easy way to download chromium in your project and run your unit/integration tests through it. It will also run headless by default on CI servers.\n\n## Getting Started\n1. Install ember-chromium as a dev dependency via npm/yarn\n    ```sh\n    $ npm install ember-chromium --save-dev\n    # -or-\n    $ yarn add ember-chromium --dev\n    ```\n\n\n1. In your `package.json`, add a `pretest` script to run the `install-chromium` script.\n\n    ```json\n    \"scripts\": {\n      // ...\n      \"pretest\": \"npm run install-chromium\",\n      // -or-\n      \"pretest\": \"yarn run install-chromium\",\n    }\n    ````\n\n    [Note:] When installed, ember-chromium links the `install-chromium` script into `\u003cproject-root\u003e/node-modules/.bin`.  This directory is on the npm/yarn script path and can be called directly.\n\n## Usage\nYou can run just the default behavior by doing the following in testem.js:\n```\nmodule.exports = require('ember-chromium').getTestemConfig();\n```\n\nThat's it!\n\nYou can further customize the chromium as follows:\n\n```\nconst chromium = require('ember-chromium');\nconst myCustomReporter = require('some-test-reporter');\n\n// any chromium flags you want\nconst chromiumArgs = [\n  '--disable-gpu',\n  '--no-sandbox',\n  '--disable-gesture-requirement-for-media-playback',\n  '--allow-file-access',\n  '--use-fake-device-for-media-stream',\n  '--use-fake-ui-for-media-stream'\n];\n\nconst config = chromium.getTestemConfig(chromiumArgs);\nconfig.reporter = myCustomReporter;\n\nmodule.export = config;\n```\n\nOnce you have the default config, you can manipulate as fits your needs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurecloudlabs%2Fember-chromium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurecloudlabs%2Fember-chromium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurecloudlabs%2Fember-chromium/lists"}