Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"undefined undefined" error when bdd:init #4350

Closed
julien-binard opened this issue May 17, 2024 · 1 comment · Fixed by #4366
Closed

"undefined undefined" error when bdd:init #4350

julien-binard opened this issue May 17, 2024 · 1 comment · Fixed by #4366

Comments

@julien-binard
Copy link

What are you trying to achieve?

Since version 3.6.2 (was working in 3.6.1), when you enable gherkin/bdd, an error occurs on updating the configuration to add the gherkin part with "undefined undefined"
Reproduced on both linux & windows.

What do you get instead?

Provide console output if related. Use --verbose mode for more details.

npx codeceptjs bdd:init

Output :

Initializing Gherkin (Cucumber BDD) for CodeceptJS
--------------------------
Created /config/workspace/features, place your *.feature files in it
Created sample feature file: features/basic.feature
Created /config/workspace/step_definitions, place step definitions into it
Created sample steps file: step_definitions/steps.js

codecept.conf.js config can't be updated automatically
Please update it manually:

undefined: undefined

Gherkin setup is done.
Start writing feature files and implement corresponding steps.

Details

codeceptVersion:  "3.6.2"
nodeInfo:  14.21.3
osInfo:  Linux 6.1 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
cpuInfo:  (12) x64 AMD Ryzen 5 5600GT with Radeon Graphics
chromeInfo:  Not Found
edgeInfo:  "N/A"
firefoxInfo:  undefined
safariInfo:  N/A
@julien-binard
Copy link
Author

Just looked at code, Project have TypeScript enabled, and looks like js/ts extension is not manager between lib gherkin:init & updateConfig
I created by mistake codecept project in TS but that explain my issue, not version update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant