phasegate 0.162.0 → 0.163.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -7,7 +7,10 @@ import path from 'node:path';
|
|
|
7
7
|
import type { TestReferenceSourcePort } from '../../application/usecases/generate-requirement-test-matrix-usecase.js';
|
|
8
8
|
import type { TestReferenceSourceDto } from '../../application/dto/generate-matrix-output.js';
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// StoryId は HXX-XX 形式に加え Phase 2 拡張 Epic の HF\d+-XX 形式も許容する
|
|
11
|
+
// (markdown-requirement-source-adapter の STORY_HEADING / traceability-model の StoryId 正規表現と整合)。
|
|
12
|
+
// 旧 /H\d{2}-\d{2}/ は HF2-01 等を取りこぼし、正しく注釈されたテストが「テストなし」と誤判定されていた。
|
|
13
|
+
const STORY_TAG = /@story(?:-id)?\s+(H(?:F\d+|\d{2})-\d{2})/;
|
|
11
14
|
const TEST_NAME = /\b(?:it|test)(?:\.each\([^)]*\))?\s*\(\s*['"`]([^'"`]+)['"`]/g;
|
|
12
15
|
|
|
13
16
|
async function collectTestFiles(root: string): Promise<readonly string[]> {
|