no-mistakes 0.35.0 → 0.35.1

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/README.md CHANGED
@@ -70,6 +70,8 @@ const {
70
70
  framework: "vitest", // also supports "playwright", "dotnet", and "swift"
71
71
  changedFiles: ["src/utils.mts"],
72
72
  });
73
+ // Complete changed-file inventory, including paths that selected no tests.
74
+ console.log(plan.changed_files);
73
75
  const targetCommands = await testsTargets({
74
76
  root: process.cwd(),
75
77
  framework: "vitest",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "no-mistakes",
3
- "version": "0.35.0",
3
+ "version": "0.35.1",
4
4
  "description": "Static codebase analysis tools for TS/JS dependencies, dependents, and symbols",
5
5
  "license": "MIT",
6
6
  "repository": {
package/test-types.d.ts CHANGED
@@ -49,6 +49,8 @@ export interface TestsTargetsOptions {
49
49
  }
50
50
 
51
51
  export interface TestPlan {
52
+ /** Complete deterministic changed-file inventory, relative to the request root. */
53
+ changed_files: string[];
52
54
  selected_tests: SelectedTest[];
53
55
  groups?: TestPlanGroup[];
54
56
  warnings: TestPlanWarning[];
@@ -157,9 +159,14 @@ export interface WhyStep {
157
159
  detail?: ImpactEdgeDetail | null;
158
160
  }
159
161
 
162
+ /** A current or pre-`changed_files` plan accepted by saved-plan document APIs. */
163
+ export type SavedTestPlan = Omit<TestPlan, "changed_files"> & {
164
+ changed_files?: string[];
165
+ };
166
+
160
167
  export interface TestsPlanDocumentOptions {
161
168
  plan?: string;
162
- planJson?: TestPlan | string;
169
+ planJson?: SavedTestPlan | string;
163
170
  }
164
171
 
165
172
  export interface TestGraph {