typescript-selenium-example icon indicating copy to clipboard operation
typescript-selenium-example copied to clipboard

Problem with running scripts

Open flywojt opened this issue 7 years ago • 4 comments

Hi. I am trying to run tests but I have got such errors:

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] tdd: `rm -rf dist && tsc && mocha -t 10000 dist/tests`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] tdd script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

I searched google, but I did not find a solution. Any Idea? :)

P.S. Thanks for nice framework

flywojt avatar Feb 02 '18 15:02 flywojt

That description doesn’t say much. Is there any other message/log?

goenning avatar Feb 03 '18 09:02 goenning

No. I write simple test to check out if everything is ok. Chrome is launched, and correct page is loaded but there is no any actions like send keys or clicks. It looks like that this is something with Webdriver.

flywojt avatar Feb 05 '18 08:02 flywojt

Full logs:

0 info it worked if it ends with ok 1 verbose cli [ '/usr/local/Cellar/node@6/6.12.0/bin/node', 1 verbose cli '/usr/local/bin/npm', 1 verbose cli 'run', 1 verbose cli 'tdd' ] 2 info using [email protected] 3 info using [email protected] 4 verbose run-script [ 'pretdd', 'tdd', 'posttdd' ] 5 info lifecycle [email protected]~pretdd: [email protected] 6 info lifecycle [email protected]~tdd: [email protected] 7 verbose lifecycle [email protected]~tdd: unsafe-perm in lifecycle true 8 verbose lifecycle [email protected]~tdd: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/flywojt/Desktop/typescript-selenium-example-master/node_modules/.bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Library/Frameworks/Python.framework/Versions/2.7/bin 9 verbose lifecycle [email protected]~tdd: CWD: /Users/flywojt/Desktop/typescript-selenium-example-master 10 silly lifecycle [email protected]~tdd: Args: [ '-c', 'rm -rf dist && tsc && mocha -t 20000 dist/tests' ] 11 silly lifecycle [email protected]~tdd: Returned: code: 1 signal: null 12 info lifecycle [email protected]~tdd: Failed to exec tdd script 13 verbose stack Error: [email protected] tdd: rm -rf dist && tsc && mocha -t 20000 dist/tests 13 verbose stack Exit status 1 13 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:285:16) 13 verbose stack at EventEmitter.emit (events.js:160:13) 13 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 13 verbose stack at ChildProcess.emit (events.js:160:13) 13 verbose stack at maybeClose (internal/child_process.js:943:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5) 14 verbose pkgid [email protected] 15 verbose cwd /Users/flywojt/Desktop/typescript-selenium-example-master 16 verbose Darwin 17.3.0 17 verbose argv "/usr/local/Cellar/node@6/6.12.0/bin/node" "/usr/local/bin/npm" "run" "tdd" 18 verbose node v9.4.0 19 verbose npm v5.6.0 20 error code ELIFECYCLE 21 error errno 1 22 error [email protected] tdd: rm -rf dist && tsc && mocha -t 20000 dist/tests 22 error Exit status 1 23 error Failed at the [email protected] tdd script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 1, true ]

flywojt avatar Feb 05 '18 08:02 flywojt

It seems that using yarn resolve problems but I have got another issue: Error: Timeout of 20000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.

flywojt avatar Feb 05 '18 10:02 flywojt