NativeScript / NativeScript/nx

Not able to run unit tests successfully in an integrated nx monorepo.

オープン
#78 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
TypeScript
スター
68
フォーク
15
PR マージ指標
30日以内にマージされた PR はありません

説明

I have an integrated nx monorepo with a directory structure as follows.

apps/nativescript-saas which has my nativescript app written with angular

libs/nativescript contains some base components for which are extended by nativescript app.
libs/shared contains some shared components which I also use for my web-app

I have all the configs in place and my libs are referenced in ts.config both spec and app.

The issue is that my tests files do not recognise the code libs in libs directory although when I run it normally everything works fine. I have looked at the the unit test v3 runner here Link but it doesn't also work as expected.

My question is of there is any reference repo where this was setup and tested? Or it could potentially be an issue.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

apps/nativescript-saas と libs/nativescript、libs/shared の統合された Nx レイアウトから始め、次にアプリと spec の設定で使用されている ts.config の参照を比較します。Issue にリンクされている NativeScript unit test v3 runner のガイダンスを確認し、テストコマンドを再現します。ユニットテストでライブラリコードが解決され、正常に実行できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
build-system, testing
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。