typescript-selenium-example
typescript-selenium-example copied to clipboard
Problem with running scripts
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
That description doesn’t say much. Is there any other message/log?
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.
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.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 ]
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.