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

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

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

評価

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

調査の方向性

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

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

説明

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.

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

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

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

はじめの一歩

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

NativeScript/nx のほかの issue

NativeScript/nx の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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