NativeScript / NativeScript/nativescript-cli

Boostrapping Shared Code Project Unit Tests

Đang mở
#5,321 2 bình luận 0 reaction 1 người được giao Xem trên GitHub

@NathanWalker đang làm issue này rồi.

Từ ngày 9/6/2020.

Ngôn ngữ chính
JavaScript
Star
1.1k
Fork
204
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
8

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.