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

NativeScript application with jest tests are not compatible (nx) #68

Open
harikasin opened this issue Apr 14, 2023 · 1 comment
Open

Comments

@harikasin
Copy link

By following the steps you indicate:

npx create-nx-workspace@latest (monorepo with a web app or a typescript app, indifferently)
npm install --save-dev @nativescript/nx.
npx nx g @nativescript/nx:app

Once you have the app created, if you use the command npx nx run <app-name>:test:ios the default NativeScript app created by NativeScript does not use jest, and sends you to start the tests using mocha, jasmine or qunit.

When you change the configuration to use jest (like web app), if you launch the app it doesn't know how to interpret angular modules and imports.

The "moduleResolution" configuration is not able to interpret it correctly so it always fails.

The tests that you have in your repository for the nativesscript application also fail.

These are the errors it gives:
imagen

I leave here the repository where you can find this test project: https://github.com/harikasin/nativescript-jest

@harikasin
Copy link
Author

Any news?

@harikasin harikasin reopened this May 25, 2023
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

1 participant