{"id":19664640,"url":"https://github.com/wisersolutions/cypress-without","last_synced_at":"2025-06-24T07:08:16.623Z","repository":{"id":34931975,"uuid":"191163733","full_name":"WiserSolutions/cypress-without","owner":"WiserSolutions","description":"`without` command for Cypress (https://www.cypress.io) for breaking out of a `within` inside custom commands","archived":false,"fork":false,"pushed_at":"2023-07-18T20:17:33.000Z","size":831,"stargazers_count":0,"open_issues_count":7,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-03T02:32:16.964Z","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/WiserSolutions.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":"2019-06-10T12:27:28.000Z","updated_at":"2021-08-11T07:52:30.000Z","dependencies_parsed_at":"2025-02-27T03:43:37.150Z","dependency_job_id":"ab32451e-5fc4-4cdb-bf11-29ee48c4d919","html_url":"https://github.com/WiserSolutions/cypress-without","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/WiserSolutions/cypress-without","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WiserSolutions%2Fcypress-without","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WiserSolutions%2Fcypress-without/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WiserSolutions%2Fcypress-without/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WiserSolutions%2Fcypress-without/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WiserSolutions","download_url":"https://codeload.github.com/WiserSolutions/cypress-without/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WiserSolutions%2Fcypress-without/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261624959,"owners_count":23186118,"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-11T16:18:26.463Z","updated_at":"2025-06-24T07:08:16.601Z","avatar_url":"https://github.com/WiserSolutions.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cypress-without\n\n`without` command for Cypress (https://www.cypress.io) for breaking out of a `within` inside custom commands\n\n## Use\n\n### `without`\n\nEither import and use the command directly as a plain function:\n\n```javascript\nimport { without } from '@wisersolutions/cypress-without'\n\ncy.get('.some-container').within(() =\u003e {\n  // ... find elements inside the container only\n  without(() =\u003e {\n    // ... find elements anywhere (e.g. drop-downs rendered through portals)\n  })\n  // ... find more elements just inside the container\n})\n```\n\nOr register the command with Cypress and chain it off `cy`:\n\n```javascript\nimport '@wisersolutions/cypress-without/lib/register' // best done just once in your support script\n\ncy.get('.some-container').within(() =\u003e {\n  // ... find elements inside the container only\n  cy.without(() =\u003e {\n    // ... find elements anywhere (e.g. drop-downs rendered through portals)\n  })\n  // ... find more elements just inside the container\n})\n```\n\nProvide `{ log: false }` as the second argument to mute the log output.\n\n### `absoluteRoot`\n\nIf you need to chain off the document root rather than perform a one-off action\non it, use `absoluteRoot` to get the root.\n\n```javascript\nimport { absoluteRoot } from '@wisersolutions/cypress-without'\n\nexport const getActiveModal = () =\u003e absoluteRoot().find('.some-modal:visible')\n```\n\nThis helper also gets registered as Cypress command when importing `…/register` (see above).\n\n## Development\n\n### Install\n\nInstall dependencies using:\n\n```sh\nnpm install\n```\n\n### Develop\n\nAfter you modify sources, run the following (or set up your IDE to do it for you):\n\n- format the code using `npm run format`\n- lint it using `npm run lint`\n- test it using `npm test`\n\nand fix the errors, if there are any.\n\n### Publish\n\nPublishing is done in two steps:\n\n1. Create a new version tag and push it to the repository:\n    ```sh\n    npm version \u003cpatch|minor|major\u003e\n    git push --follow-tags\n    ```\n1. Build and publish the new version as a npm package:\n    ```sh\n    npm publish --access public\n    ``` \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwisersolutions%2Fcypress-without","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwisersolutions%2Fcypress-without","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwisersolutions%2Fcypress-without/lists"}