{"id":22400105,"url":"https://github.com/currents-dev/example-setup-before","last_synced_at":"2025-03-27T00:17:30.192Z","repository":{"id":237062440,"uuid":"644678371","full_name":"currents-dev/example-setup-before","owner":"currents-dev","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-14T19:18:31.000Z","size":560,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T04:52:20.995Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/currents-dev.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-24T03:04:15.000Z","updated_at":"2023-05-24T03:11:12.000Z","dependencies_parsed_at":"2024-05-04T04:33:09.516Z","dependency_job_id":null,"html_url":"https://github.com/currents-dev/example-setup-before","commit_stats":null,"previous_names":["currents-dev/example-setup-before"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/currents-dev%2Fexample-setup-before","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/currents-dev%2Fexample-setup-before/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/currents-dev%2Fexample-setup-before/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/currents-dev%2Fexample-setup-before/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/currents-dev","download_url":"https://codeload.github.com/currents-dev/example-setup-before/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245755683,"owners_count":20667027,"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-12-05T08:11:23.936Z","updated_at":"2025-03-27T00:17:30.175Z","avatar_url":"https://github.com/currents-dev.png","language":"JavaScript","readme":"# Example: executing async tasks before each spec\n\nExecuting an async task for each Cypress spec file\n\n[before](https://github.com/currents-dev/example-setup-before/blob/8342af5dcb02ebb72a2c4312c015d869aed7ea71/cypress/support/e2e.js#L23) method of `cypress/support/e2e.js` is automatically included in each spec file. The method invokes an async [`cy.task`](https://docs.cypress.io/api/commands/task) that runs in NodeJS, and can be used to spin up a testing environment, or execute any other setup task e.g. seeding a DB.\n\nTake a look at `cypress.config.js` that defines the setup task within `setupNodeEvents` function.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurrents-dev%2Fexample-setup-before","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcurrents-dev%2Fexample-setup-before","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurrents-dev%2Fexample-setup-before/lists"}