python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Cucumber-js + playwright: receiving "Error: toMatchSnapshot() must be called during the test" error when using .toMatchSnapshot()
I have a need to setup a visual regression framework playwright + cucumber-js.
I finally made it to work somehow, but I can't make it to match screenshots via Playwright.
When execution reaches the ro...
nataly go
Votes: 0
Answers: 0
"Error: Cannot use import statement outside a module" in Cucumber-JS step definition w/ typescript
I am getting the following error:
command: npx cucumber-js .\cucumber-e2e\
import { Given, When, Then } from '@cucumber/cucumber';
^^^^^^
SyntaxError: Cannot use import statement outside a module
at ...

Victor
Votes: 0
Answers: 1
How to automatic load .feature files
Here is an example of the (react) architecture.
src/
components/
Input/
Tests/
Input.feature
Input.test.js
We test with react testing library and cucumber for scenarios. But in each fea...
Ludovic WEBER
Votes: 0
Answers: 1
Can I watch files outside of current directory with `npm run watch`?
I work with two repo's; one with source code and one with E2E tests using CucumberJS:
application-repo/
application-e2e/
I would like to run npm run watch in the second repo and wait for changes to ...
Karl Kristiansen
Votes: 0
Answers: 1