-
-
Notifications
You must be signed in to change notification settings - Fork 197
unit testing for freshly created angular project is broken when import a package from node_modules #4244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @ochemerys , |
Hi @ochemerys, Sorry for the late reply.
Actually you don't need to import the
We released a new version of the
Let us know if it works for you. |
Fixed in |
Hi @Fatme
still fails for me with message
on android device emulator-5554 |
Do you have |
@Fatme
with
and Test run failed. |
|
@Fatme |
@Fatme
after
|
@Fatme
steps to reproduce
run
run
Should I do something else to run tests? |
Can you please try with next version of
|
@Fatme
now gives SUCCESS. Then I modified test to be sure that npm_modules are accessible:
and test fails with error
|
If you want to test some import from
|
@Fatme |
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 SDK is installed.
✔ A compatible Android SDK for compilation is found.
✔ Javac is installed and is configured properly.
✔ The Java Development Kit (JDK) is installed and is configured properly.
✔ Xcode is installed and is configured properly.
✔ xcodeproj is installed and is configured properly.
✔ CocoaPods are installed.
✔ CocoaPods update is not required.
✔ CocoaPods are configured properly.
✔ Your current CocoaPods version is newer than 1.0.0.
✔ Python installed and configured correctly.
✔ The Python 'six' package is found.
✔ Xcode version 10.1.0 satisfies minimum required version 9.
✔ Getting NativeScript components versions information...
✔ Component nativescript has 5.1.0 version and is up to date.
✔ Component tns-core-modules has 5.1.0 version and is up to date.
✔ Component tns-android has 5.1.0 version and is up to date.
✔ Component tns-ios has 5.1.0 version and is up to date.
karma.conf.js contains
// list of files / patterns to load in the browser
files: [
'src/tests/**/*.js'
],
the same issue on iOS and Android devices
Describe the bug
unit testing for freshly created angular project is broken when import a package from node_modules
To Reproduce
I followed steps for workarounds provided in #4232
then I added
import { expect } from 'chai';
my test fails with error message:
it looks like test runner is not able to find installed chai npm package
I commented out "chai" and tried "sinon" instead.
The same result
Expected behavior
I should be able to use import statements for node packages
Is there any workaround for this one?
The text was updated successfully, but these errors were encountered: