Title: tns test does not work with mocha 1.3+ · Issue #2212 · NativeScript/nativescript-cli · GitHub
Open Graph Title: tns test does not work with mocha 1.3+ · Issue #2212 · NativeScript/nativescript-cli
X Title: tns test does not work with mocha 1.3+ · Issue #2212 · NativeScript/nativescript-cli
Description: tns create TestApp && cd TestApp tns test init --framework mocha tns test android Result: module.js:471 throw err; ^ Error: Cannot find module 'mocha' at Function.Module._resolveFilename (module.js:469:15) at Function.resolve (internal/m...
Open Graph Description: tns create TestApp && cd TestApp tns test init --framework mocha tns test android Result: module.js:471 throw err; ^ Error: Cannot find module 'mocha' at Function.Module._resolveFilename (module.js...
X Description: tns create TestApp && cd TestApp tns test init --framework mocha tns test android Result: module.js:471 throw err; ^ Error: Cannot find module 'mocha' at Function.Module._resolveFil...
Opengraph URL: https://github.com/NativeScript/nativescript-cli/issues/2212
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tns test does not work with mocha 1.3+","articleBody":"tns create TestApp && cd TestApp\r\ntns test init --framework mocha\r\ntns test android\r\n\r\nResult:\r\n```\r\nmodule.js:471\r\n throw err;\r\n ^\r\n\r\nError: Cannot find module 'mocha'\r\n at Function.Module._resolveFilename (module.js:469:15)\r\n at Function.resolve (internal/module.js:27:19)\r\n at initMocha (/Users/topuzov/Git/nativescript-cli-tests/TNS_App/node_modules/karma-mocha/lib/index.js:10:40)\r\n at Array.invoke (/Users/topuzov/Git/nativescript-cli-tests/TNS_App/node_modules/karma/node_modules/di/lib/injector.js:75:15)\r\n at Injector.get (/Users/topuzov/Git/nativescript-cli-tests/TNS_App/node_modules/karma/node_modules/di/lib/injector.js:48:43)\r\n at /Users/topuzov/Git/nativescript-cli-tests/TNS_App/node_modules/karma/lib/server.js:143:20\r\n at Array.forEach (native)\r\n at Server._start (/Users/topuzov/Git/nativescript-cli-tests/TNS_App/node_modules/karma/lib/server.js:142:21)\r\n at Injector.invoke (/Users/topuzov/Git/nativescript-cli-tests/TNS_App/node_modules/karma/node_modules/di/lib/injector.js:75:15)\r\n at Server.start (/Users/topuzov/Git/nativescript-cli-tests/TNS_App/node_modules/karma/lib/server.js:103:18)\r\n at process.\u003canonymous> (/Users/topuzov/Git/nativescript-cli-tests/node_modules/nativescript/lib/services/karma-execution.js:8:15)\r\n at emitTwo (events.js:106:13)\r\n at process.emit (events.js:191:7)\r\n at process.nextTick (internal/child_process.js:744:12)\r\n at _combinedTickCallback (internal/process/next_tick.js:67:7)\r\n at process._tickCallback (internal/process/next_tick.js:98:9)\r\nError: Test run failed.\r\n at FiberFuture.wait (/Users/topuzov/Git/nativescript-cli-tests/node_modules/fibers/future.js:566:15)\r\n at /Users/topuzov/Git/nativescript-cli-tests/node_modules/nativescript/lib/common/errors.js:128:33\r\n at Function.settle (/Users/topuzov/Git/nativescript-cli-tests/node_modules/fibers/future.js:249:26)\r\n at FiberFuture.wait (/Users/topuzov/Git/nativescript-cli-tests/node_modules/fibers/future.js:565:10)\r\n at /Users/topuzov/Git/nativescript-cli-tests/node_modules/nativescript/lib/common/services/commands-service.js:84:106\r\n at Function.settle (/Users/topuzov/Git/nativescript-cli-tests/node_modules/fibers/future.js:249:26)\r\n at FiberFuture.wait (/Users/topuzov/Git/nativescript-cli-tests/node_modules/fibers/future.js:565:10)\r\n at /Users/topuzov/Git/nativescript-cli-tests/node_modules/nativescript/lib/common/yok.js:208:124\r\n at Function.settle (/Users/topuzov/Git/nativescript-cli-tests/node_modules/fibers/future.js:249:26)\r\n at FiberFuture.wait (/Users/topuzov/Git/nativescript-cli-tests/node_modules/fibers/future.js:565:10)\r\n at /Users/topuzov/Git/nativescript-cli-tests/node_modules/nativescript/lib/common/services/commands-service.js:51:55\r\n at Function.settle (/Users/topuzov/Git/nativescript-cli-tests/node_modules/fibers/future.js:249:26)\r\n at FiberFuture.wait (/Users/topuzov/Git/nativescript-cli-tests/node_modules/fibers/future.js:565:10)\r\n at /Users/topuzov/Git/nativescript-cli-tests/node_modules/nativescript/lib/common/errors.js:128:33\r\n at Function.settle (/Users/topuzov/Git/nativescript-cli-tests/node_modules/fibers/future.js:249:26)\r\n at FiberFuture.wait (/Users/topuzov/Git/nativescript-cli-tests/node_modules/fibers/future.js:565:10)\r\n - - - - -\r\n at ChildProcess.\u003canonymous> (/Users/topuzov/Git/nativescript-cli-tests/node_modules/nativescript/lib/services/test-execution-service.js:111:33)\r\n at emitTwo (events.js:106:13)\r\n at ChildProcess.emit (events.js:191:7)\r\n at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)\r\n\r\n```\r\n\r\nWorkaround:\r\n```\r\ntns create TestApp && cd TestApp\r\ntns test init --framework mocha\r\nnpm install --save-dev mocha\r\ntns test android\r\n```\r\n","author":{"url":"https://github.com/dtopuzov","@type":"Person","name":"dtopuzov"},"datePublished":"2016-11-10T12:38:53Z","url":"https://github.com/NativeScript/nativescript-cli/issues/2212"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:15530ac0-6f9c-0e90-073e-63a184673606 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CE54:28A483:3E2094:529189:6B0195B2 |
| html-safe-nonce | 239c6c27c6d91773dfe4d9803505df4696fc7c95c7ed6bfd43e4ad3a45af5d1c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTU0OjI4QTQ4MzozRTIwOTQ6NTI5MTg5OjZCMDE5NUIyIiwidmlzaXRvcl9pZCI6IjE4MzMwNjY4Mjc5NzUwNzExNTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 866aa6a5ab61d95db4e350c01be445a470e8b32073fea68510260e01a7889a08 |
| hovercard-subject-tag | issue:188497971 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/nativescript-cli/2212/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b9944eeba0d5bae98ef83f3f913f105554b8e58324b916bead86138587c87504/NativeScript/nativescript-cli/issues/2212 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b9944eeba0d5bae98ef83f3f913f105554b8e58324b916bead86138587c87504/NativeScript/nativescript-cli/issues/2212 |
| og:image:alt | tns create TestApp && cd TestApp tns test init --framework mocha tns test android Result: module.js:471 throw err; ^ Error: Cannot find module 'mocha' at Function.Module._resolveFilename (module.js... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dtopuzov |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/nativescript-cli git https://github.com/NativeScript/nativescript-cli.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 21347346 |
| octolytics-dimension-repository_nwo | NativeScript/nativescript-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21347346 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/nativescript-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width