no-mistakes 0.43.3 → 0.45.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 CHANGED
@@ -68,7 +68,7 @@ const {
68
68
  });
69
69
  const plan = await testsPlan({
70
70
  root: process.cwd(),
71
- framework: "vitest", // also supports "playwright", "dotnet", and "swift"
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "no-mistakes",
3
- "version": "0.43.3",
3
+ "version": "0.45.0",
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
@@ -1,6 +1,16 @@
1
1
  import type { SymbolEntrypoint } from "./traversal-types";
2
2
 
3
- type TestPlanFramework = "vitest" | "playwright" | "dotnet" | "swift";
3
+ /** Runner accepted by `testsPlan`, `testsTargets`, and `TestExecutionTarget`. */
4
+ export type TestPlanFramework =
5
+ | "vitest"
6
+ | "playwright"
7
+ | "dotnet"
8
+ | "swift"
9
+ | "python"
10
+ | "go"
11
+ | "cargo"
12
+ | "rails"
13
+ | "php";
4
14
 
5
15
  interface TestsPlanOptionsBase {
6
16
  framework?: TestPlanFramework;
@@ -65,7 +75,7 @@ export interface TestsImpactOptions {
65
75
  }
66
76
 
67
77
  export interface TestsTargetsOptions {
68
- framework: "vitest" | "playwright" | "dotnet" | "swift";
78
+ framework: TestPlanFramework;
69
79
  /** Project root. Defaults to the current working directory. */
70
80
  root?: string;
71
81
  /** Path to the no-mistakes config file (e.g. .no-mistakes.yml). Auto-discovered in root if omitted. */
@@ -91,7 +101,7 @@ export interface SelectedTest {
91
101
  }
92
102
 
93
103
  export interface TestExecutionTarget {
94
- runner: "vitest" | "playwright" | "dotnet" | "swift";
104
+ runner: TestPlanFramework;
95
105
  config?: string | null;
96
106
  /** True when config is a Vitest workspace/project-array source rendered with --workspace. */
97
107
  workspace?: boolean;
@@ -150,7 +160,7 @@ export interface TestPlanWarning {
150
160
  }
151
161
 
152
162
  export interface TestsTargetsReport {
153
- framework: "vitest" | "playwright" | "dotnet" | "swift";
163
+ framework: TestPlanFramework;
154
164
  tests: TestTargetRow[];
155
165
  warnings: TestTargetWarning[];
156
166
  }
@@ -26,6 +26,11 @@ export type Relationship =
26
26
  | "dotnet"
27
27
  | "swift"
28
28
  | "terraform"
29
+ | "python"
30
+ | "go"
31
+ | "rust"
32
+ | "ruby"
33
+ | "php"
29
34
  | "resource"
30
35
  | "all";
31
36