{"id":13393474,"url":"https://github.com/cucumber/cucumber-js","last_synced_at":"2026-10-18T23:48:09.941Z","repository":{"id":37444952,"uuid":"1811965","full_name":"cucumber/cucumber-js","owner":"cucumber","description":"Cucumber for JavaScript","archived":false,"fork":false,"pushed_at":"2026-10-16T00:43:47.000Z","size":31239,"stargazers_count":5397,"open_issues_count":41,"forks_count":1109,"subscribers_count":201,"default_branch":"main","last_synced_at":"2026-10-16T02:00:36.995Z","etag":null,"topics":["cucumber","javascript","typescript"],"latest_commit_sha":null,"homepage":"https://cucumber.io","language":"TypeScript","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/cucumber.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yaml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"accessibility":null,"support":"docs/support_files/api_reference.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"claude":null,"gemini":null,"cursor":null,"copilot":null,"dco":null,"cla":null,"disclosure":null},"funding":{"open_collective":"cucumber","github":"cucumber"}},"created_at":"2011-05-27T21:27:17.000Z","updated_at":"2026-10-14T13:25:29.000Z","dependencies_parsed_at":"2026-10-08T15:19:28.391Z","dependency_job_id":null,"html_url":"https://github.com/cucumber/cucumber-js","commit_stats":{"total_commits":1878,"total_committers":196,"mean_commits":9.581632653061224,"dds":0.7566560170394037,"last_synced_commit":"edaf1c016ca862437836d2e6cf332e9a9afcfc95"},"previous_names":[],"tags_count":196,"template":false,"template_full_name":null,"purl":"pkg:github/cucumber/cucumber-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cucumber%2Fcucumber-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cucumber%2Fcucumber-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cucumber%2Fcucumber-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cucumber%2Fcucumber-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cucumber","download_url":"https://codeload.github.com/cucumber/cucumber-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cucumber%2Fcucumber-js/sbom","scorecard":{"id":149776,"data":{"date":"2025-08-11","repo":{"name":"github.com/cucumber/cucumber-js","commit":"b505a7a3f28a621f88d22c7dd1188c3a68fdf453"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.5,"checks":[{"name":"Code-Review","score":1,"reason":"Found 1/8 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/release-github.yaml:13","Warn: no topLevel permission defined: .github/workflows/build.yaml:1","Warn: no topLevel permission defined: .github/workflows/release-github.yaml:1","Warn: no topLevel permission defined: .github/workflows/release-npm-latest.yaml:1","Warn: no topLevel permission defined: .github/workflows/release-npm-next.yaml:1","Warn: no topLevel permission defined: .github/workflows/site.yaml:1"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yaml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/cucumber/cucumber-js/build.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yaml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/cucumber/cucumber-js/build.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yaml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/cucumber/cucumber-js/build.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yaml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/cucumber/cucumber-js/build.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yaml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/cucumber/cucumber-js/build.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yaml:50: update your workflow using https://app.stepsecurity.io/secureworkflow/cucumber/cucumber-js/build.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yaml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/cucumber/cucumber-js/build.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-github.yaml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/cucumber/cucumber-js/release-github.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release-github.yaml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/cucumber/cucumber-js/release-github.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-npm-latest.yaml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/cucumber/cucumber-js/release-npm-latest.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-npm-latest.yaml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/cucumber/cucumber-js/release-npm-latest.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release-npm-latest.yaml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/cucumber/cucumber-js/release-npm-latest.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-npm-next.yaml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/cucumber/cucumber-js/release-npm-next.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-npm-next.yaml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/cucumber/cucumber-js/release-npm-next.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release-npm-next.yaml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/cucumber/cucumber-js/release-npm-next.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/site.yaml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/cucumber/cucumber-js/site.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/site.yaml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/cucumber/cucumber-js/site.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/site.yaml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/cucumber/cucumber-js/site.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/site.yaml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/cucumber/cucumber-js/site.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/stale.yaml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/cucumber/cucumber-js/stale.yaml/main?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/build.yaml:33","Warn: npmCommand not pinned by hash: .github/workflows/build.yaml:42","Warn: npmCommand not pinned by hash: .github/workflows/release-npm-latest.yaml:22","Warn: npmCommand not pinned by hash: .github/workflows/release-npm-next.yaml:20","Warn: npmCommand not pinned by hash: .github/workflows/site.yaml:17","Info:   0 out of  16 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   4 third-party GitHubAction dependencies pinned","Info:   0 out of   5 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/cucumber/.github/SECURITY.md:1","Info: Found linked content: github.com/cucumber/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/cucumber/.github/SECURITY.md:1","Info: Found text in security policy: github.com/cucumber/.github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 28 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-xffm-g5w8-qvg7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T10:17:58.778Z","repository_id":37444952,"created_at":"2025-08-16T10:17:58.779Z","updated_at":"2025-08-16T10:17:58.779Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":344836268,"owners_count":38330325,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-10-03T21:59:58.778Z","status":"online","status_checked_at":"2026-10-16T02:00:06.653Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cucumber","javascript","typescript"],"created_at":"2024-07-30T17:00:53.785Z","updated_at":"2026-10-18T23:48:09.935Z","avatar_url":"https://github.com/cucumber.png","language":"TypeScript","funding_links":["https://opencollective.com/cucumber","https://github.com/sponsors/cucumber"],"categories":["Test runners","TypeScript","By Product","Tools, Libraries \u0026 Frameworks","Packages","Test","typescript","By Technology","Utility Libraries","Testing","Tools"],"sub_categories":["Cucumber","Test","IDE","JavaScript"],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003cimg src=\"./docs/images/logo.svg\" alt=\"\" width=\"75\"\u003e\n  \u003cbr\u003e\n  Cucumber\n\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n  \u003cb\u003eAutomated tests in plain language, for Node.js\u003c/b\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@cucumber/cucumber\" style=\"text-decoration: none\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@cucumber/cucumber?style=flat\u0026color=dark-green\" alt=\"Latest version on npm\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://coveralls.io/github/cucumber/cucumber-js?branch=master\" style=\"text-decoration: none\"\u003e\u003cimg src=\"https://coveralls.io/repos/github/cucumber/cucumber-js/badge.svg?branch=main\" alt=\"Coverage\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://scorecard.dev/viewer/?uri=github.com/cucumber/cucumber-js\"\u003e\u003cimg src=\"https://api.scorecard.dev/projects/github.com/cucumber/cucumber-js/badge\" alt=\"OpenSSF Scorecard\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/cucumber\"\u003e\u003cimg src=\"https://opencollective.com/cucumber/backers/badge.svg\" alt=\"Backers\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://opencollective.com/cucumber\"\u003e\u003cimg src=\"https://opencollective.com/cucumber/sponsors/badge.svg\" alt=\"Sponsors\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://vshymanskyy.github.io/StandWithUkraine\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg\" alt=\"Ukraine solidarity\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/cucumber/cucumber-js/actions\" style=\"text-decoration: none\"\u003e\u003cimg src=\"https://github.com/cucumber/cucumber-js/actions/workflows/build.yml/badge.svg\" alt=\"Build status\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/cucumber/cucumber-js/actions\" style=\"text-decoration: none\"\u003e\u003cimg src=\"https://github.com/cucumber/cucumber-js/actions/workflows/release-npm.yml/badge.svg\" alt=\"Release status\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n[Cucumber](https://github.com/cucumber) is a tool for running automated tests written in plain language. Because they're\nwritten in plain language, they can be read by anyone on your team. Because they can be\nread by anyone, you can use them to help improve communication, collaboration and trust on\nyour team.\n\nThis is the JavaScript implementation of Cucumber. It runs on [maintained versions](https://github.com/nodejs/Release) of Node.js. You can [quickly try it via CodeSandbox](https://codesandbox.io/s/cucumber-js-demo-2p3vrl?file=/features/greeting.feature), or read on to get started locally in a couple of minutes.\n\nLooking to contribute? Read our [code of conduct](https://github.com/cucumber/.github/blob/main/CODE_OF_CONDUCT.md) first, then check the [contributing guide](./CONTRIBUTING.md) to get up and running.\n\n## Install\n\nCucumber is [available on npm](https://www.npmjs.com/package/@cucumber/cucumber):\n\n```shell\nnpm install @cucumber/cucumber\n```\n\n## Get Started\n\nLet's take this example of something to test:\n\n\nFirst, write your main code in `src/index.js`:\n\n```js\nclass Greeter {\n  sayHello() {\n    return 'hello'\n  }\n}\n\nmodule.exports = {\n  Greeter\n}\n```\n\nThen, write your feature in `features/greeting.feature`:\n\n```gherkin\nFeature: Greeting\n\n  Scenario: Say hello\n    When the greeter says hello\n    Then I should have heard \"hello\"\n```\n\nNext, implement your steps in `features/support/steps.js`:\n\n```js\nconst assert = require('assert')\nconst { When, Then } = require('@cucumber/cucumber')\nconst { Greeter } = require('../../src')\n\nWhen('the greeter says hello', function () {\n  this.whatIHeard = new Greeter().sayHello()\n})\n\nThen('I should have heard {string}', function (expectedResponse) {\n  assert.equal(this.whatIHeard, expectedResponse)\n})\n```\n\nFinally, run Cucumber:\n\n```shell\nnpx cucumber-js\n```\n\nAnd see the output:\n\n![Terminal output showing a successful test run with 1 scenario and 2 steps, all passing](./docs/images/readme-output.png)\n\nIf you learn best by example, we have [a repo with several example projects](https://github.com/cucumber/cucumber-js-examples), that might help you get going.\n\n## Documentation\n\nThe following documentation is for `main`, which might contain some unreleased features. See [documentation for older versions](./docs/older_versions.md) if you need it.\n\n* [Installation](./docs/installation.md)\n* [CLI](./docs/cli.md)\n* [Configuration](./docs/configuration.md)\n* Support Code\n  * [API Reference](./docs/support_files/api_reference.md)\n  * [Attachments](./docs/support_files/attachments.md)\n  * [Data Tables](./docs/support_files/data_table_interface.md)\n  * [Hooks](./docs/support_files/hooks.md)\n  * [Step Definitions](./docs/support_files/step_definitions.md)\n  * [Timeouts](./docs/support_files/timeouts.md)\n  * [World](./docs/support_files/world.md)\n* Guides\n  * [Debugging](./docs/debugging.md)\n  * [Dry run](./docs/dry_run.md)\n  * [ES Modules](./docs/esm.md)\n  * [Failing fast](./docs/fail_fast.md)\n  * [Filtering which scenarios run](./docs/filtering.md)\n  * [Formatters for feedback and reporting](./docs/formatters.md)\n  * [Parallel running for speed](./docs/parallel.md)\n  * [Plugins for extending functionality](./docs/plugins.md)\n  * [Profiles for composable configuration](./docs/profiles.md)\n  * [Rerunning just failures](./docs/rerun.md)\n  * [Retrying flaky scenarios](./docs/retry.md)\n  * [Sharding to split tests across machines](./docs/sharding.md)\n  * [JavaScript API for running programmatically](./docs/javascript_api.md)\n  * [Snippets for undefined steps](./docs/snippets.md)\n  * [Transpiling (from TypeScript etc)](./docs/transpiling.md)\n* [FAQ](./docs/faq.md)\n\n## Support\n\nSupport is [available from the community](https://cucumber.io/tools/cucumber-open/support/) if you need it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcucumber%2Fcucumber-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcucumber%2Fcucumber-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcucumber%2Fcucumber-js/lists"}