You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hard to debug the syntax error without stack trace.
What do you get instead?
Syntax error, with this is hard to find the syntax error in the project.
Provide console output if related. Use --verbose mode for more details.
codeceptjs run --steps --verbose
SyntaxError: Unexpected identifier
Error:
at Codecept.run (/usr/local/npm_packages/lib/node_modules/codeceptjs/lib/codecept.js:174:13)
at codecept.runBootstrap (/usr/local/npm_packages/lib/node_modules/codeceptjs/lib/command/run.js:39:16)
at module.exports (/usr/local/npm_packages/lib/node_modules/codeceptjs/lib/hooks.js:27:13)
at Codecept.runBootstrap (/usr/local/npm_packages/lib/node_modules/codeceptjs/lib/codecept.js:110:5)
at Command.module.exports (/usr/local/npm_packages/lib/node_modules/codeceptjs/lib/command/run.js:35:14)
at Command.listener (/usr/local/npm_packages/lib/node_modules/codeceptjs/node_modules/commander/index.js:315:8)
at Command.emit (events.js:198:13)
at Command.parseArgs (/usr/local/npm_packages/lib/node_modules/codeceptjs/node_modules/commander/index.js:651:12)
at Command.parse (/usr/local/npm_packages/lib/node_modules/codeceptjs/node_modules/commander/index.js:474:21)
at Object.<anonymous> (/usr/local/npm_packages/lib/node_modules/codeceptjs/bin/codecept.js:188:9)
Issue:
File: codeceptjs/lib/codecept.js.
line no: 174.
throw new Error(e);
Solution:
output.print(e.stack);
throw new Error(e);
Activity
No error stack trace for syntax error codeceptjs#2118
Update codecept.js
No error stack trace for syntax error #2118 (#2121)