Skip to content
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

Jest support for NativeScript + Angular. #2329

Open
james-spears opened this issue Feb 13, 2021 · 1 comment
Open

Jest support for NativeScript + Angular. #2329

james-spears opened this issue Feb 13, 2021 · 1 comment

Comments

@james-spears
Copy link

james-spears commented Feb 13, 2021

Is your feature request related to a problem? Please describe.

I'm always frustrated when I try to unit test my NativeScript + Angular application using Jest.

Describe the solution you'd like

I would appreciate support for using Jest with NativeScript + Angular.

Describe alternatives you've considered

Please see this stackoverflow question, where I outline my struggles. What is holding it back at the moment is transpilation of @nativescript/core and @nativescript/angular prior to running the tests. There are some import statements which Jest does not like, and when I follow the instructions from Jest and instruct ts-jest or babel-jest to transpile, I get another error about not being able to find ./application, or ~package.json.

Additional context

With guidance I would be willing to continue working the problem and search for a solution. Or some comments and/or responses to my stackoverflow question would be greatly appreciated, even if it is to comment on why it cannot easily be done. Thank you.

@wSedlacek
Copy link

@jameone This might be a useful reference - nstudio/xplat#170 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants