Closed ampc closed 5 years ago
Hi @ampc,
I'm sorry, but I cannot reproduce this issue. Did you try it with the latest version of gherkin-testcafe and the latest version of the examples?
Hi, I'm using these packages:
"dependencies": {
"@ffmpeg-installer/ffmpeg": "^1.0.17",
"@percy/agent": "^0.1.14",
"@percy/puppeteer": "^1.0.5",
"@types/node": "^10.12.26",
"cucumber": "4.2.1",
"faker": "^4.1.0",
"gherkin-testcafe": "^2.0.0",
"moment": "^2.24.0",
"rimraf": "^2.6.3",
"testcafe": "^1.0.1",
"testcafe-reporter-html": "^1.4.4",
"ts-node": "^8.0.2",
"typescript": "^3.3.3"
}
I've noticed that I'm using testcafe 1.0.1
, is it related to that?
Hmm, I reinstalled all node_modules and it's working now :smile: Thank you.
I am also getting the same error on running 'gherkin-testcafe tests/steps/sampletest2.js tests/feature/*.feature' command
I even tried reinstalling as @ampc mentioned. But it didn't work.
ERROR TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined at assertPath (path.js:39:11) at Object.relative (path.js:497:5) at getDefinitionLineAndUri (C:\Users\mohamedh\Desktop\testcafe2\node_modules\cucumber\lib\support_code_library_builder\build_helpers.js:184:27) at buildStepDefinitionConfig (C:\Users\mohamedh\Desktop\testcafe2\node_modules\cucumber\lib\support_code_library_builder\build_helpers.js:124:7) at SupportCodeLibraryBuilder.defineStep (C:\Users\mohamedh\Desktop\testcafe2\node_modules\cucumber\lib\support_code_library_builder\index.js:51:79) at Object.<anonymous> (C:\Users\mohamedh\Desktop\testcafe2\tests\steps\sampletest2.js:7:1) at Module._compile (internal/modules/cjs/loader.js:688:30) at Module._compile (C:\Users\mohamedh\AppData\Roaming\npm\node_modules\testcafe\node_modules\source-map-support\source-map-support.js:521:25) at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10) at Module.load (internal/modules/cjs/loader.js:598:32) at tryModuleLoad (internal/modules/cjs/loader.js:537:12) at Function.Module._load (internal/modules/cjs/loader.js:529:3) at Module.require (internal/modules/cjs/loader.js:636:17) at require (internal/modules/cjs/helpers.js:20:18) at stepFiles.forEach.stepFile (C:\Users\mohamedh\AppData\Roaming\npm\node_modules\gherkin-testcafe\src\compiler.js:122:7) at Array.forEach (<anonymous>) at GherkinTestcafeCompiler._loadStepDefinitions (C:\Users\mohamedh\AppData\Roaming\npm\node_modules\gherkin-testcafe\src\compiler.js:119:20) at GherkinTestcafeCompiler.getTests (C:\Users\mohamedh\AppData\Roaming\npm\node_modules\gherkin-testcafe\src\compiler.js:61:10) at Bootstrapper._getTests (C:\Users\mohamedh\AppData\Roaming\npm\node_modules\testcafe\src\runner\bootstrapper.js:81:41) at process._tickCallback (internal/process/next_tick.js:68:7)
appreciate if someone could help?
When executing the feature from examples directory I get the following error
Any idea how to solve this? Thank you :+1: