question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cypress Cucumber Issue.

See original GitHub issue

Hi, While running cypress cucumber feature file with Cypress 7.5 version below error is displayed.

Error: Webpack Compilation Error
./cypress/integration/Google.feature 1:16
Module parse failed: Unexpected token (1:16)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> Feature: Google Main Page
| 
|   I want to open a search engine

I followed the below steps. https://github.com/TheBrainFamily/cypress-cucumber-preprocessor https://www.npmjs.com/package/cypress-cucumber-preprocessor

Let me know any changes are required?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:11

github_iconTop GitHub Comments

5reactions
Saurabhj89commented, Nov 30, 2021

Add below code in ‘cypress/plugins/index.js’ file. This worked for me.

const cucumber = require(‘cypress-cucumber-preprocessor’).default module.exports = (on, config) => { on(‘file:preprocessor’, cucumber()) }

5reactions
Thimmarajucommented, Jun 22, 2021

npm i cypress-cucumber-preprocessor run this again and check ur package.json should have this dependency

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · badeball/cypress-cucumber-preprocessor - GitHub
Run cucumber/gherkin-syntaxed specs with Cypress. Contribute to badeball/cypress-cucumber-preprocessor development by creating an account on GitHub.
Read more >
cypress-cucumber-preprocessor - npm
The cypress-cucumber-preprocessor adds support for using feature files when testing with Cypress. You can follow the documentation below, ...
Read more >
cypress-cucumber-preprocessor does not parse feature files
I was having the same issue and it was because I had installed an old version of the package. Here's what you need...
Read more >
Testing using Cypress and Cucumber in JavaScript
In this case, we'll create a Cucumber Test, of Cucumber Type "Scenario." We can fill out the Gherkin statements immediately on the Jira...
Read more >
Plugins - Cypress Documentation
Run cucumber/gherkin-syntaxed specs with cypress.io. #file-watcher#cucumber ... Helps test your applications for accessibility issues using axe-core.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found