Răsfoiți Sursa

chore: enable test

chenjiawei.inizio 10 luni în urmă
părinte
comite
c9ef66b1be

+ 2 - 2
.github/workflows/ci.yml

@@ -28,5 +28,5 @@ jobs:
         run: node common/scripts/install-run-rush.js install
       - name: Rush build
         run: node common/scripts/install-run-rush.js build
-      # - name: Test (coverage)
-      #   run: node common/scripts/install-run-rush.js test:cov -v
+      - name: Test (coverage)
+        run: node common/scripts/install-run-rush.js test:cov -v

+ 20 - 0
common/config/rush/command-line.json

@@ -192,6 +192,26 @@
       "autoinstallerName": "rush-commands",
       "shellCommand": "node common/autoinstallers/rush-commands/check-circular-dependency.mjs"
     },
+    {
+      "commandKind": "bulk",
+      "name": "test",
+      "description": "Executes automated tests.",
+      "allowWarningsInSuccessfulBuild": true,
+      "ignoreMissingScript": true,
+      "enableParallelism": true,
+      "incremental": true,
+      "summary": "⭐️️ Run test command for each package"
+    },
+    {
+      "commandKind": "bulk",
+      "name": "test:cov",
+      "description": "Executes automated tests with coverage collection.",
+      "allowWarningsInSuccessfulBuild": true,
+      "ignoreMissingScript": true,
+      "enableParallelism": true,
+      "incremental": true,
+      "summary": "⭐️️ Run coverage command for each package"
+    },
     // 本地包构建 + watch
     {
       "name": "build:watch",

+ 1 - 1
common/config/rush/pnpm-config.json

@@ -60,7 +60,7 @@
 
    * The default value is false.
    */
-  // "autoInstallPeers": false,
+  "autoInstallPeers": true,
 
   /**
    * If true, then Rush will add the `--strict-peer-dependencies` command-line parameter when