{"id":15552381,"url":"https://github.com/bahmutov/cypress-skip-this-test","last_synced_at":"2025-09-28T20:30:53.951Z","repository":{"id":255445509,"uuid":"852363929","full_name":"bahmutov/cypress-skip-this-test","owner":"bahmutov","description":"Skips the current test if it depends on the previous failed test","archived":false,"fork":false,"pushed_at":"2024-09-05T13:35:19.000Z","size":85,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T15:57:34.697Z","etag":null,"topics":["cypress-plugin"],"latest_commit_sha":null,"homepage":"","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/bahmutov.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":"2024-09-04T17:19:16.000Z","updated_at":"2025-01-08T16:51:15.000Z","dependencies_parsed_at":"2024-09-05T23:36:03.066Z","dependency_job_id":null,"html_url":"https://github.com/bahmutov/cypress-skip-this-test","commit_stats":null,"previous_names":["bahmutov/cypress-skip-this-test"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fcypress-skip-this-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fcypress-skip-this-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fcypress-skip-this-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fcypress-skip-this-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bahmutov","download_url":"https://codeload.github.com/bahmutov/cypress-skip-this-test/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234390510,"owners_count":18824619,"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":["cypress-plugin"],"created_at":"2024-10-02T14:18:19.170Z","updated_at":"2025-09-28T20:30:48.566Z","avatar_url":"https://github.com/bahmutov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cypress-skip-this-test\n\n\u003e Skips the current test if it depends on the previous failed test\n\n📝 Read the blog post [Skip Dependent Cypress Tests On Failure](https://glebbahmutov.com/blog/skip-dependent-tests-on-failure/).\n\n## Install\n\n```\n$ npm i -D cypress-skip-this-test\n# or using Yarn\n$ yarn add -D cypress-skip-this-test\n```\n\nImport the `` in the specs with tests that depend on each other\n\n```js\nimport { skipIfPreviousTestsFailed } from 'cypress-skip-this-test'\n\ndescribe('Parent suite', () =\u003e {\n  // second test fails on purpose\n  // and the third test should skip\n  beforeEach(skipIfPreviousTestsFailed)\n\n  it('test 1', () =\u003e {})\n\n  it('test 2', () =\u003e {\n    throw new Error('fail on purpose')\n  })\n\n  it('test 3', () =\u003e {})\n})\n```\n\nThe \"test 3\" will be skipped when the test \"test 2\" fails. If all tests in the parent suite before \"test 3\" pass successfully, then the test will run.\n\n## Small print\n\nAuthor: Gleb Bahmutov \u0026lt;gleb.bahmutov@gmail.com\u0026gt; \u0026copy; 2024\n\n- [@bahmutov](https://twitter.com/bahmutov)\n- [glebbahmutov.com](https://glebbahmutov.com)\n- [blog](https://glebbahmutov.com/blog)\n- [videos](https://www.youtube.com/glebbahmutov)\n- [presentations](https://slides.com/bahmutov)\n- [cypress.tips](https://cypress.tips)\n- [Cypress Tips \u0026 Tricks Newsletter](https://cypresstips.substack.com/)\n- [my Cypress courses](https://cypress.tips/courses)\n\nLicense: MIT - do anything with the code, but don't blame me if it does not work.\n\nSupport: if you find any problems with this module, email / tweet /\n[open issue](https://github.com/bahmutov/cypress-skip-this-test/issues) on Github\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahmutov%2Fcypress-skip-this-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbahmutov%2Fcypress-skip-this-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahmutov%2Fcypress-skip-this-test/lists"}