NativeScript application with jest tests are not compatible (nx)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- typescript
- Ambito
- mobile, testing-qa
Direzione di ricerca
Riproduci il problema con create-nx-workspace, @nativescript/nx e l’app generata, quindi esegui npx nx run :test:ios. Confronta la configurazione di test predefinita di NativeScript con la configurazione Jest descritta nell’issue e analizza il repository nativescript-jest collegato. Il lavoro è completato quando i test dell’app NativeScript generata vengono eseguiti con Jest e interpretano correttamente i moduli e gli import Angular.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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:

I leave here the repository where you can find this test project: https://github.com/harikasin/nativescript-jest
- Lingua principale
- TypeScript
- Stelle
- 68
- Fork
- 15
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di NativeScript/nx
-
Add support for "nx publish" Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 65/100
NativeScript/nx#88 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 30/100
NativeScript/nx#84 · 3 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
NativeScript/nx#80 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
NativeScript/nx#78 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
NativeScript/nx#76 ·
Tutte le issue di NativeScript/nx
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
0xMiden/bridge-portal#132 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
area:tools bug good first issue help wanted priority:P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
TaewoooPark/Motifcode#14 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
newrelic-experimental/preflight#793 · 1 commento ·