cucumber-js
cucumber-js copied to clipboard
Cucumber for JavaScript
# Description This is a draft failing scenario to try and describe what @charlierudolph and @davidjgoss are describing in https://github.com/cucumber/cucumber-js/issues/1393 I'd like to work on a fix but thought it...
### 🤔 What's changed? This PR moves the "publish" functionality from being a pseudo-formatter to being a "plugin" - a new concept we're experimenting with (see https://github.com/cucumber/cucumber-js/discussions/2091). The plugin concept...
### 🤔 What's the problem you've observed? The ansi-regex module has following vulnerability https://www.cve.org/CVERecord?id=CVE-2021-3807 ### ✨ Do you have a proposal for making it better? Updating the package "has-ansi": "^4.0.1"...
Getting **Error: Cannot find module '@cucumber/cucumber/api'** in Jenkins. call stack: ``` Error: Cannot find module '@cucumber/cucumber/api' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at Object....
When we converted cucumber-js from JavaScript to TypeScript, we used the `any` type quite liberally to hasten the process. We have a long-term goal to replace all instances of `any`...
### 🤔 What's the problem you've observed? I was stumped for about a full day by using the require directive in my configuration when I should have been using the...
Run-able [Proposal Playground](https://www.typescriptlang.org/play?#code/KYOwrgtgBAYgTmAlgFygbygcgIIAdcA2wmANFAPJwCGIA5sGQMJgDGkARsHFAL4BQoSFABqwesirsi6KAAUA9hOTyyAUVq1CNVPz4B6PVAAikCAE8oiCLnlxkAZzIAVAMpQtZ2nHlgQAEygWGhBFKAQQSwAzS2tbZGA-PhZ5EHtUJwALUCgAXigACmAAD1w4YHt7RBSALig0uEQ6MkiQWvyAOk6qOFp7WpozAEpcgD4oAeGcseQEYABuJJS0qD9gSMbgWW6qCGB4uCczXGBcgs727t7+kCHRqBmweb59Q1lvG3sqAjIqKEjfFjIKoRZAZKioCQAa3K4ygACVgMk4AF5NFVOAIPZxv4VmsNljkEcTrhtrt9vZFqlUGVaIg0lxDscsXl8oSmbUEUi-AAeeqNWhkDAAbUaqyKlgifLoAF1alLaFAAD5QAByHC4vBGkzGaD4UAo7AAVojkO1QDNEOVWUT7IN2pFbKoqCwMvl8kKQDsGPcidLtbj1iBNqS9gyifldfr9Z7drUY96DJYze1YAgUHqo4n0UI9AB3KAYriIFhQaFmLHdE4hVAfSpSE7sCyM4AuFgNXCoVaVWggMi5k5BSVUSLAAgWdYEfal4DljP6mnFXBx4D5hG0VQlfLkI0m9pl+zW452if7fKQu4AQjVEE4cDPgzthvkjXymEVmAfZETiGTUDwhGARVKBoehFWYNgby4Eg53uahUgdOBdjgNo+jqC06H9Cl9R4B8+F0RM3nkD4vigMBPnoMhKmsaR-hAQFgSgXMUAyA1jUBdwQ32MhQW8fNBExCVKlWF4oEYL4iACXMsjKAA3DVVkDYNqDJMNjkYnwCACThAnEhI+BpOl9mbA8MHgJBkDIURxEkaQcOeIhUHpXAYBABYRIAVXsLgsUHXEWAISt0DMlAeCgWx0CsvYbOAULGlE1h1W4RcygqYERIAKTI1ACEQaFsQsRRpI45TQ24NkTgUjYtIsSqgy2EqjKJETMhnHSIi+ex5B9NTQWJTiNUbFZnzoaczFRbrgHG8beqgbNoDigBHR40jSlqQFfABJOoMg0gIwTk7EAH4grTZBYoicwoHYKh7GhZBSDQ4BnIiPIbrMOi-gBIEUgKSJTtqMtpqJcbguQYZIygRNPO8+4qEhfkrtAPFUHG1Z-MrAJQagfiyAgOGB3kaxujpJYfgqLhvtSMg9hYDNEEifI-vM3IcjyUGhVB9pgLoYA-Qh-VklSeQiHaAh5FofIACJsHJuwEZQCsIlsEDgAvSXBgzfg7JE1QIDAAL4ixcIQAR6aske3ARPqr0pzpCbEkTDaQHiAgcq81IKrpDwsSIymKSclype5+h1aAA) In its essence, allow for something like this to happen: ```ts // Expose registerTypes to user import { Then, defineParameterType, registerTypes } from '@cucumber/cucumber'; enum Fruit {...
### 🤔 What's the problem you've observed? We have two areas doing similar work in different places: - https://github.com/cucumber/cucumber-js/blob/main/src/runtime/stopwatch.ts - https://github.com/cucumber/cucumber-js/blob/main/src/time.ts The former uses [a third-party library](https://www.npmjs.com/package/durations) as well. I...
### 🤔 What's the problem you're trying to solve? It is such a common problem that users use arrow functions in step definitions, that this is a FAQ item https://github.com/cucumber/cucumber-js/blob/main/docs/faq.md#the-world-instance-isnt-available-in-my-hooks-or-step-definitions...
### 🤔 What's changed? Add optional `workerId` parameter to some envelopes to access it inside the custom formaters ### ⚡️ What's your motivation? `allure-cucumberjs` needs to have access to thread...