jest-cucumber
jest-cucumber copied to clipboard
jest-cucumber : Feature file not found () error
I have a feature file , named as consoleLogger.feature.
and consoleLogger.steps.js which contains the below code ,
import { defineFeature, loadFeature } from 'jest-cucumber'; const consoleLogger = require('../src/Util/consoleLogger'); const feature = loadFeature('../feature/consoleLogger.feature');
I am trying to connect feature file with step file using loadFeature but getting the below error , FAIL steps/consoleLogger.steps.js ● Test suite failed to run
Feature file not found (C:\Users\sr00015\NewWorkspace\feature\consoleLogger.feature)
folder structure
I had the same error. You must specify the path from the root directory. Example: ./feature/consoleLogger.feature

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue is closed because there has been no recent activity.