no-mistakes 0.35.0 → 0.36.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/README.md +2 -0
- package/package.json +1 -1
- package/test-types.d.ts +8 -1
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
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?:
|
|
169
|
+
planJson?: SavedTestPlan | string;
|
|
163
170
|
}
|
|
164
171
|
|
|
165
172
|
export interface TestGraph {
|