Title: Is it possible to make this driver support Jest for NativeScript-Vue users? · Issue #283 · NativeScript/nativescript-dev-appium · GitHub
Open Graph Title: Is it possible to make this driver support Jest for NativeScript-Vue users? · Issue #283 · NativeScript/nativescript-dev-appium
X Title: Is it possible to make this driver support Jest for NativeScript-Vue users? · Issue #283 · NativeScript/nativescript-dev-appium
Description: Is your feature request related to a problem? Please describe. While I am aware that Mocha, Qunit, and Jasmine are what is described to be the recommended test runners in NativeScript-Angular. With NativeScript-Vue, it appears that the c...
Open Graph Description: Is your feature request related to a problem? Please describe. While I am aware that Mocha, Qunit, and Jasmine are what is described to be the recommended test runners in NativeScript-Angular. With...
X Description: Is your feature request related to a problem? Please describe. While I am aware that Mocha, Qunit, and Jasmine are what is described to be the recommended test runners in NativeScript-Angular. With...
Opengraph URL: https://github.com/NativeScript/nativescript-dev-appium/issues/283
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Is it possible to make this driver support Jest for NativeScript-Vue users?","articleBody":"**Is your feature request related to a problem? Please describe.**\r\n\u003c!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]. --\u003e \r\nWhile I am aware that Mocha, Qunit, and Jasmine are what is described to be the recommended test runners in NativeScript-Angular. With NativeScript-Vue, it appears that the community has not fully agreed on a [proper test setup](https://github.com/nativescript-vue/nativescript-vue/issues/224) or runner. So far the NativeScript-Vue community have agreed to make Jest the [standard test runner](https://github.com/nativescript-vue/nativescript-vue/pull/486) for unit and integration testing so utilities such as Vue Test Utils can be used. However, it appears that it is still not possible to run Jest reliably with nativescript-dev-appium as it crashes with a [reserved name error](https://github.com/appium/appium/issues/10237) in the dependency [cloudhead/vargs](https://github.com/cloudhead/vargs) which has not been maintained for 10 years. Having to use another test runner for e2e and Jest for everything else is a problem as it is not best practice to mix test runners.\r\n**Describe the solution you'd like**\r\n\u003c!-- A clear and concise description of what you want to happen. --\u003e\r\nI know similar write once mobile frameworks such as React Native are able to use Jest as an Appium test runner through a [babel preset](https://medium.com/front-end-weekly/how-to-do-end-to-end-e2e-testing-for-react-native-android-using-jest-and-appium-27d75e4d831b) and just using the standard wd driver. So I was wondering if it would be possible to make this driver work for Jest so the NativeScript-Vue users can use the same test runner throughout all stages of testing. Whether it would be possible through a new babel preset or replacing cloudhead/vargs with the new [mike-lang fork](https://github.com/mike-lang/vargs/commits/master) of vargs, or even just creating a separate driver or driver-extension for NativeScript-Vue. Otherwise if changes need to be made to other dependencies, perform a pull request. If it is not possible to create such a feature feel free to inform about the limitations and what alternatives to consider.\r\n\r\n**Describe alternatives you've considered**\r\n\u003c!-- A clear and concise description of any alternative solutions or features you've considered. --\u003e\r\n\r\nAlternatives considered have been to run [Vue Test Utils with mocha-webpack](https://vue-test-utils.vuejs.org/guides/testing-single-file-components-with-mocha-webpack.html) which has been unsuccessful in a NativeScript environment, just do [manual Vue component testing](https://vuejs.org/v2/guide/unit-testing.html) with other runners which can make tests more tedious in the long run, or just run Jest and other test runners in tandem and block jest from any e2e directories which is quite ugly. \r\n\r\n**Additional context**\r\n\u003c!-- Add any other context or screenshots about the feature request here. --\u003e\r\n","author":{"url":"https://github.com/redelman431","@type":"Person","name":"redelman431"},"datePublished":"2020-02-04T17:58:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/283/nativescript-dev-appium/issues/283"}
| 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:eea27806-0e67-a638-e699-aafd7813b720 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D4B8:29B638:1F68E6:29F82C:6A5B5BEA |
| html-safe-nonce | ba456092aec4f1c43304e9ca0806ba6598d0d04985d831b3fc4776d4f27ad5e5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENEI4OjI5QjYzODoxRjY4RTY6MjlGODJDOjZBNUI1QkVBIiwidmlzaXRvcl9pZCI6IjU1MzE1MTgwMTMyODIxNDczMDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c363a283606ad9b5e1aa51b1d5846408892ea8c86d517dd5817357fff61d51af |
| hovercard-subject-tag | issue:559885360 |
| 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-dev-appium/283/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d7a92cdf60cbc76494c79d2196a2d5f89ee101d680417f1bf9361899852b9ab9/NativeScript/nativescript-dev-appium/issues/283 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d7a92cdf60cbc76494c79d2196a2d5f89ee101d680417f1bf9361899852b9ab9/NativeScript/nativescript-dev-appium/issues/283 |
| og:image:alt | Is your feature request related to a problem? Please describe. While I am aware that Mocha, Qunit, and Jasmine are what is described to be the recommended test runners in NativeScript-Angular. With... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | redelman431 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/nativescript-dev-appium git https://github.com/NativeScript/nativescript-dev-appium.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 58553304 |
| octolytics-dimension-repository_nwo | NativeScript/nativescript-dev-appium |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 58553304 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/nativescript-dev-appium |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width