no-mistakes 0.43.3 → 0.44.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 +1 -1
- package/package.json +1 -1
- package/test-types.d.ts +13 -4
- package/traversal-types.d.ts +5 -0
package/README.md
CHANGED
|
@@ -68,7 +68,7 @@ const {
|
|
|
68
68
|
});
|
|
69
69
|
const plan = await testsPlan({
|
|
70
70
|
root: process.cwd(),
|
|
71
|
-
framework: "vitest", // also
|
|
71
|
+
framework: "vitest", // also python, go, cargo, rails, php, playwright, dotnet, swift
|
|
72
72
|
changedFiles: ["src/utils.mts"],
|
|
73
73
|
});
|
|
74
74
|
// Complete changed-file inventory, including paths that selected no tests.
|
package/package.json
CHANGED
package/test-types.d.ts
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import type { SymbolEntrypoint } from "./traversal-types";
|
|
2
2
|
|
|
3
|
-
type TestPlanFramework =
|
|
3
|
+
type TestPlanFramework =
|
|
4
|
+
| "vitest"
|
|
5
|
+
| "playwright"
|
|
6
|
+
| "dotnet"
|
|
7
|
+
| "swift"
|
|
8
|
+
| "python"
|
|
9
|
+
| "go"
|
|
10
|
+
| "cargo"
|
|
11
|
+
| "rails"
|
|
12
|
+
| "php";
|
|
4
13
|
|
|
5
14
|
interface TestsPlanOptionsBase {
|
|
6
15
|
framework?: TestPlanFramework;
|
|
@@ -65,7 +74,7 @@ export interface TestsImpactOptions {
|
|
|
65
74
|
}
|
|
66
75
|
|
|
67
76
|
export interface TestsTargetsOptions {
|
|
68
|
-
framework:
|
|
77
|
+
framework: TestPlanFramework;
|
|
69
78
|
/** Project root. Defaults to the current working directory. */
|
|
70
79
|
root?: string;
|
|
71
80
|
/** Path to the no-mistakes config file (e.g. .no-mistakes.yml). Auto-discovered in root if omitted. */
|
|
@@ -91,7 +100,7 @@ export interface SelectedTest {
|
|
|
91
100
|
}
|
|
92
101
|
|
|
93
102
|
export interface TestExecutionTarget {
|
|
94
|
-
runner:
|
|
103
|
+
runner: TestPlanFramework;
|
|
95
104
|
config?: string | null;
|
|
96
105
|
/** True when config is a Vitest workspace/project-array source rendered with --workspace. */
|
|
97
106
|
workspace?: boolean;
|
|
@@ -150,7 +159,7 @@ export interface TestPlanWarning {
|
|
|
150
159
|
}
|
|
151
160
|
|
|
152
161
|
export interface TestsTargetsReport {
|
|
153
|
-
framework:
|
|
162
|
+
framework: TestPlanFramework;
|
|
154
163
|
tests: TestTargetRow[];
|
|
155
164
|
warnings: TestTargetWarning[];
|
|
156
165
|
}
|