René's URL Explorer Experiment


Title: unit testing for freshly created angular project is broken when import a package from node_modules · Issue #4244 · NativeScript/nativescript-cli · GitHub

Open Graph Title: unit testing for freshly created angular project is broken when import a package from node_modules · Issue #4244 · NativeScript/nativescript-cli

X Title: unit testing for freshly created angular project is broken when import a package from node_modules · Issue #4244 · NativeScript/nativescript-cli

Description: Environment $ tns doctor ✔ Getting environment information No issues were detected. ✔ Your ANDROID_HOME environment variable is set and points to correct directory. ✔ Your adb from the Android SDK is correctly installed. ✔ The Android SD...

Open Graph Description: Environment $ tns doctor ✔ Getting environment information No issues were detected. ✔ Your ANDROID_HOME environment variable is set and points to correct directory. ✔ Your adb from the Android SDK ...

X Description: Environment $ tns doctor ✔ Getting environment information No issues were detected. ✔ Your ANDROID_HOME environment variable is set and points to correct directory. ✔ Your adb from the Android SDK ...

Opengraph URL: https://github.com/NativeScript/nativescript-cli/issues/4244

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"unit testing for freshly created angular project is broken when import a package from node_modules","articleBody":"**Environment**\r\n$ tns doctor\r\n✔ Getting environment information\r\n\r\nNo issues were detected.\r\n✔ Your ANDROID_HOME environment variable is set and points to correct directory.\r\n✔ Your adb from the Android SDK is correctly installed.\r\n✔ The Android SDK is installed.\r\n✔ A compatible Android SDK for compilation is found.\r\n✔ Javac is installed and is configured properly.\r\n✔ The Java Development Kit (JDK) is installed and is configured properly.\r\n✔ Xcode is installed and is configured properly.\r\n✔ xcodeproj is installed and is configured properly.\r\n✔ CocoaPods are installed.\r\n✔ CocoaPods update is not required.\r\n✔ CocoaPods are configured properly.\r\n✔ Your current CocoaPods version is newer than 1.0.0.\r\n✔ Python installed and configured correctly.\r\n✔ The Python 'six' package is found.\r\n✔ Xcode version 10.1.0 satisfies minimum required version 9.\r\n✔ Getting NativeScript components versions information...\r\n✔ Component nativescript has 5.1.0 version and is up to date.\r\n✔ Component tns-core-modules has 5.1.0 version and is up to date.\r\n✔ Component tns-android has 5.1.0 version and is up to date.\r\n✔ Component tns-ios has 5.1.0 version and is up to date.\r\n\r\nkarma.conf.js contains\r\n// list of files / patterns to load in the browser\r\nfiles: [\r\n'src/tests/**/*.js'\r\n],\r\n\r\nthe same issue on **iOS** and **Android** devices\r\n\r\n**Describe the bug**\r\nunit testing for freshly created angular project is broken when import a package from node_modules\r\n \r\n**To Reproduce**\r\nI followed steps for workarounds provided in https://github.com/NativeScript/nativescript-cli/issues/4232\r\nthen I added\r\n`import { expect } from 'chai';`\r\nmy test fails with error message:\r\n\r\n    5 12 2018 15:02:23.006:WARN [NativeScript / 28 (9; Android SDK built for x86)]: Adapter did not report total number of specs.\r\n    NativeScript / 28 (9; Android SDK built for x86) ../../tests/example.spec.js at line 0 FAILED\r\n    Error: com.tns.NativeScriptException: Failed to find module: \"chai\", relative to: app/tns_modules/\r\n    com.tns.Module.resolvePathHelper(Module.java:146)\r\n    com.tns.Module.resolvePath(Module.java:55)\r\n    com.tns.Runtime.callJSMethodNative(Native Method)\r\n    com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1120)\r\n    com.tns.Runtime.callJSMethodImpl(Runtime.java:1000)\r\n    com.tns.Runtime.callJSMethod(Runtime.java:987)\r\n    com.tns.Runtime.callJSMethod(Runtime.java:967)\r\n    com.tns.Runtime.callJSMethod(Runtime.java:959)\r\n    com.tns.gen.java.lang.Runnable.run(Runnable.java:15)\r\n    android.os.Handler.handleCallback(Handler.java:873)\r\n    android.os.Handler.dispatchMessage(Handler.java:99)\r\n    android.os.Looper.loop(Looper.java:193)\r\n    android.app.ActivityThread.main(ActivityThread.java:6669)\r\n    java.lang.reflect.Method.invoke(Native Method)\r\n    com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)\r\n    com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)\r\n    NativeScript / 28 (9; Android SDK built for x86): Executed 1 of null (1 FAILED) ERROR (0.056 secs / 0 secs)\r\n    Test run failed.\r\n\r\nit looks like test runner is not able to find installed chai npm package\r\n\r\nI commented out \"chai\" and tried \"sinon\" instead.\r\nThe same result \r\n\r\n**Expected behavior**\r\nI should be able to use import statements for node packages\r\n\r\n_**Is there any workaround for this one?**_\r\n","author":{"url":"https://github.com/ochemerys","@type":"Person","name":"ochemerys"},"datePublished":"2018-12-20T16:34:54Z","url":"https://github.com/NativeScript/nativescript-cli/issues/4244"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a6743eb0-e4e2-e56e-022a-abb846936a23
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC88E:38EE04:C90F51:10A8BEE:6B01C7DA
html-safe-nonce008552cd8893cd2cefb813488c55449100a6b14b17e4ff73968a20fda41b8dfe
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODhFOjM4RUUwNDpDOTBGNTE6MTBBOEJFRTo2QjAxQzdEQSIsInZpc2l0b3JfaWQiOiIyMjU4NTE4Mjc4MjAyODM2OTU0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac7985190b3bf01574c4da09925dad3d14f2306764b0fb2898ffa1f058dfd9e86d
hovercard-subject-tagissue:393122338
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/nativescript-cli/4244/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9e7a5efda54d2e815b3f9c5751509540ee803cae29bc4f0210f207c55b5a0b33/NativeScript/nativescript-cli/issues/4244
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9e7a5efda54d2e815b3f9c5751509540ee803cae29bc4f0210f207c55b5a0b33/NativeScript/nativescript-cli/issues/4244
og:image:altEnvironment $ tns doctor ✔ Getting environment information No issues were detected. ✔ Your ANDROID_HOME environment variable is set and points to correct directory. ✔ Your adb from the Android SDK ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameochemerys
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/NativeScript/nativescript-cli git https://github.com/NativeScript/nativescript-cli.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id21347346
octolytics-dimension-repository_nwoNativeScript/nativescript-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id21347346
octolytics-dimension-repository_network_root_nwoNativeScript/nativescript-cli
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/NativeScript/nativescript-cli/issues/4244#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fnativescript-cli%2Fissues%2F4244
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fnativescript-cli%2Fissues%2F4244
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=NativeScript%2Fnativescript-cli
Reloadhttps://github.com/NativeScript/nativescript-cli/issues/4244
Reloadhttps://github.com/NativeScript/nativescript-cli/issues/4244
Reloadhttps://github.com/NativeScript/nativescript-cli/issues/4244
NativeScripthttps://github.com/NativeScript
nativescript-clihttps://github.com/NativeScript/nativescript-cli
Codehttps://github.com/NativeScript/nativescript-cli
Issues357 (357)https://github.com/NativeScript/nativescript-cli/issues
Pull requests38 (38)https://github.com/NativeScript/nativescript-cli/pulls
Actionshttps://github.com/NativeScript/nativescript-cli/actions
Projectshttps://github.com/NativeScript/nativescript-cli/projects
Security and qualityhttps://github.com/NativeScript/nativescript-cli/security
Insightshttps://github.com/NativeScript/nativescript-cli/insights
https://github.com/NativeScript/nativescript-cli
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/nativescript-cli/issues/4244
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/nativescript-cli/issues/4244
unit testing for freshly created angular project is broken when import a package from node_moduleshttps://github.com/NativeScript/nativescript-cli/issues/4244#top
https://github.com/Fatme
https://github.com/dtopuzov
bughttps://github.com/NativeScript/nativescript-cli/issues?q=state%3Aopen%20label%3A%22bug%22
severity: highhttps://github.com/NativeScript/nativescript-cli/issues?q=state%3Aopen%20label%3A%22severity%3A%20high%22
unit testinghttps://github.com/NativeScript/nativescript-cli/issues?q=state%3Aopen%20label%3A%22unit%20testing%22
5.2.0https://github.com/NativeScript/nativescript-cli/milestone/85
https://github.com/ochemerys
ochemeryshttps://github.com/ochemerys
on Dec 20, 2018https://github.com/NativeScript/nativescript-cli/issues/4244#issue-393122338
#4232https://github.com/NativeScript/nativescript-cli/issues/4232
ochemeryshttps://github.com/ochemerys
on Dec 21, 2018https://github.com/NativeScript/nativescript-cli/issues/4244#event-2039758358
endarovahttps://github.com/endarova
bughttps://github.com/NativeScript/nativescript-cli/issues?q=state%3Aopen%20label%3A%22bug%22
on Dec 21, 2018https://github.com/NativeScript/nativescript-cli/issues/4244#event-2040326309
https://github.com/endarova
endarovahttps://github.com/endarova
on Dec 21, 2018https://github.com/NativeScript/nativescript-cli/issues/4244#issuecomment-449319571
@ochemeryshttps://github.com/ochemerys
endarovahttps://github.com/endarova
unit testinghttps://github.com/NativeScript/nativescript-cli/issues?q=state%3Aopen%20label%3A%22unit%20testing%22
on Dec 21, 2018https://github.com/NativeScript/nativescript-cli/issues/4244#event-2040358270
rosen-vladimirovhttps://github.com/rosen-vladimirov
severity: highhttps://github.com/NativeScript/nativescript-cli/issues?q=state%3Aopen%20label%3A%22severity%3A%20high%22
on Jan 14, 2019https://github.com/NativeScript/nativescript-cli/issues/4244#event-2071180085
rosen-vladimirovhttps://github.com/rosen-vladimirov
5.2.0https://github.com/NativeScript/nativescript-cli/milestone/85
on Jan 14, 2019https://github.com/NativeScript/nativescript-cli/issues/4244#event-2071180214
rosen-vladimirovhttps://github.com/rosen-vladimirov
Fatmehttps://github.com/Fatme
on Jan 14, 2019https://github.com/NativeScript/nativescript-cli/issues/4244#event-2071180564
Fatmehttps://github.com/Fatme
in progresshttps://github.com/NativeScript/nativescript-cli/issues?q=state%3Aopen%20label%3A%22in%20progress%22
on Jan 19, 2019https://github.com/NativeScript/nativescript-cli/issues/4244#event-2084483616
Fatmehttps://github.com/Fatme
on Jan 21, 2019https://github.com/NativeScript/nativescript-cli/issues/4244#event-2086239946
feat: respect nsconfig file from project and correctly navigate to ru…https://github.com/NativeScript/nativescript-unit-test-runner/commit/ed742f99dcdbe9fd51086a3c5fc1764129d0593e
ed742f9https://github.com/NativeScript/nativescript-unit-test-runner/commit/ed742f99dcdbe9fd51086a3c5fc1764129d0593e
feat: respect nsconfig file from project and correctly navigate to ru…https://github.com/NativeScript/nativescript-unit-test-runner/commit/402448a489918a3cc3856ffda3481a88d744c79f
402448ahttps://github.com/NativeScript/nativescript-unit-test-runner/commit/402448a489918a3cc3856ffda3481a88d744c79f
fix: respect nsconfig file on `tns test` commandhttps://github.com/NativeScript/nativescript-cli/commit/87bc3df863b82b5cc7bb12106cfae051b9bf7740
87bc3dfhttps://github.com/NativeScript/nativescript-cli/commit/87bc3df863b82b5cc7bb12106cfae051b9bf7740
Fatmehttps://github.com/Fatme
ready for testhttps://github.com/NativeScript/nativescript-cli/issues?q=state%3Aopen%20label%3A%22ready%20for%20test%22
in progresshttps://github.com/NativeScript/nativescript-cli/issues?q=state%3Aopen%20label%3A%22in%20progress%22
on Jan 30, 2019https://github.com/NativeScript/nativescript-cli/issues/4244#event-2105998486
https://github.com/Fatme
Fatmehttps://github.com/Fatme
on Jan 30, 2019https://github.com/NativeScript/nativescript-cli/issues/4244#issuecomment-458878299
@ochemeryshttps://github.com/ochemerys
#4232 (comment)https://github.com/NativeScript/nativescript-cli/issues/4232#issuecomment-447539698
dtopuzovhttps://github.com/dtopuzov
on Jan 31, 2019https://github.com/NativeScript/nativescript-cli/issues/4244#event-2108773538
https://github.com/dtopuzov
dtopuzovhttps://github.com/dtopuzov
on Jan 31, 2019https://github.com/NativeScript/nativescript-cli/issues/4244#issuecomment-459296146
dtopuzovhttps://github.com/dtopuzov
completedhttps://github.com/NativeScript/nativescript-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jan 31, 2019https://github.com/NativeScript/nativescript-cli/issues/4244#event-2109025662
dtopuzovhttps://github.com/dtopuzov
ready for testhttps://github.com/NativeScript/nativescript-cli/issues?q=state%3Aopen%20label%3A%22ready%20for%20test%22
on Jan 31, 2019https://github.com/NativeScript/nativescript-cli/issues/4244#event-2109025922
https://github.com/ochemerys
ochemeryshttps://github.com/ochemerys
on Feb 2, 2019https://github.com/NativeScript/nativescript-cli/issues/4244#issuecomment-459994592
@Fatmehttps://github.com/Fatme
https://github.com/Fatme
Fatmehttps://github.com/Fatme
on Feb 2, 2019https://github.com/NativeScript/nativescript-cli/issues/4244#issuecomment-459995910
@ochemeryshttps://github.com/ochemerys
https://github.com/ochemerys
ochemeryshttps://github.com/ochemerys
on Feb 2, 2019https://github.com/NativeScript/nativescript-cli/issues/4244#issuecomment-460004923
@Fatmehttps://github.com/Fatme
https://github.com/Fatme
Fatmehttps://github.com/Fatme
on Feb 3, 2019https://github.com/NativeScript/nativescript-cli/issues/4244#issuecomment-460028701
@ochemeryshttps://github.com/ochemerys
https://github.com/ochemerys
ochemeryshttps://github.com/ochemerys
on Feb 3, 2019https://github.com/NativeScript/nativescript-cli/issues/4244#issuecomment-460064663
@Fatmehttps://github.com/Fatme
https://github.com/ochemerys
ochemeryshttps://github.com/ochemerys
on Feb 3, 2019https://github.com/NativeScript/nativescript-cli/issues/4244#issuecomment-460073030
@Fatmehttps://github.com/Fatme
https://github.com/ochemerys
ochemeryshttps://github.com/ochemerys
on Feb 3, 2019https://github.com/NativeScript/nativescript-cli/issues/4244#issuecomment-460088277
@Fatmehttps://github.com/Fatme
https://github.com/Fatme
Fatmehttps://github.com/Fatme
on Feb 4, 2019https://github.com/NativeScript/nativescript-cli/issues/4244#issuecomment-460151075
@ochemeryshttps://github.com/ochemerys
https://github.com/ochemerys
ochemeryshttps://github.com/ochemerys
on Feb 5, 2019https://github.com/NativeScript/nativescript-cli/issues/4244#issuecomment-460494003
@Fatmehttps://github.com/Fatme
https://github.com/Fatme
Fatmehttps://github.com/Fatme
on Feb 5, 2019https://github.com/NativeScript/nativescript-cli/issues/4244#issuecomment-460526856
@ochemeryshttps://github.com/ochemerys
https://github.com/ochemerys
ochemeryshttps://github.com/ochemerys
on Feb 6, 2019https://github.com/NativeScript/nativescript-cli/issues/4244#issuecomment-460875016
@Fatmehttps://github.com/Fatme
Sign up for freehttps://github.com/signup?return_to=https://github.com/NativeScript/nativescript-cli/issues/4244
Sign in to commenthttps://github.com/login?return_to=https://github.com/NativeScript/nativescript-cli/issues/4244
Fatmehttps://github.com/Fatme
dtopuzovhttps://github.com/dtopuzov
bughttps://github.com/NativeScript/nativescript-cli/issues?q=state%3Aopen%20label%3A%22bug%22
severity: highhttps://github.com/NativeScript/nativescript-cli/issues?q=state%3Aopen%20label%3A%22severity%3A%20high%22
unit testinghttps://github.com/NativeScript/nativescript-cli/issues?q=state%3Aopen%20label%3A%22unit%20testing%22
5.2.0https://github.com/NativeScript/nativescript-cli/milestone/85
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.