NativeScript / NativeScript/nativescript-cli

Boostrapping Shared Code Project Unit Tests

Offen
#5,321 2 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@NathanWalker arbeitet bereits daran.

Seit 09.6.2020.

Vorherrschende Sprache
JavaScript
Sterne
1.1k
Forks
204
Ø Merge
1 T. 9 Std.
Gemergte PRs (30 T.)
8

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.