NativeScript / NativeScript/nativescript-cli

Boostrapping Shared Code Project Unit Tests

Aperta
#5,321 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@NathanWalker ci sta già lavorando.

Dal 9/6/2020.

Lingua principale
JavaScript
Stelle
1.1k
Fork
204
Merge medio
1g 9h
PR unite (30g)
8

Descrizione

Hello,

Im having trouble to get a working unit test project running.
Using this commands here:

mkdir tmp
cd /tmp/x
npm install @nativescript/schematics
ng new -c=@nativescript/schematics testproject --shared --style=scss
cd testproject
tns test init -> mocha
tns test android

This fails:

  • Somehow it doesnt include *.ts compiling and complains..
  • The example test just fails (because of that)
  • The Nativescript/Angular Framework is not bootstrapped (and i really dont know how to do this inside the example.ts)

Anyone have a working setup? Can you tell me what i did wrong ? Because i followed more or less the docs..

Edit:

I think its related to
https://github.com/NativeScript/nativescript-cli/issues/5281
and
https://github.com/NativeScript/nativescript-cli/issues/5277

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.