no-mistakes 0.12.0 → 0.13.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/index.d.ts +2 -0
- package/index.js +5 -0
- package/package.json +1 -1
- package/test-types.d.ts +12 -0
package/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ import type {
|
|
|
14
14
|
SymbolsResult,
|
|
15
15
|
TestGraph,
|
|
16
16
|
TestPlan,
|
|
17
|
+
TestsImpactOptions,
|
|
17
18
|
TestsPlanDocumentOptions,
|
|
18
19
|
TestsPlanOptions,
|
|
19
20
|
TestsWhyOptions,
|
|
@@ -30,6 +31,7 @@ export function symbols(options: SymbolsOptions): Promise<SymbolsResult>;
|
|
|
30
31
|
export function fetches(options?: FetchesOptions): Promise<unknown>;
|
|
31
32
|
export function check(options?: ProjectOptions): Promise<CheckReport>;
|
|
32
33
|
export function testsPlan(options: TestsPlanOptions): Promise<TestPlan>;
|
|
34
|
+
export function testsImpact(options: TestsImpactOptions): Promise<TestPlan>;
|
|
33
35
|
export function testsWhy(options: TestsWhyOptions): Promise<Record<string, WhyStep[]>>;
|
|
34
36
|
export function testsComment(options: TestsPlanDocumentOptions): Promise<string>;
|
|
35
37
|
export function testsGraph(options: TestsPlanDocumentOptions): Promise<TestGraph>;
|
package/index.js
CHANGED
|
@@ -34,6 +34,10 @@ async function testsPlan(options) {
|
|
|
34
34
|
return callJson(native.testsPlanJson, options);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
async function testsImpact(options) {
|
|
38
|
+
return callJson(native.testsImpactJson, options);
|
|
39
|
+
}
|
|
40
|
+
|
|
37
41
|
async function testsWhy(options) {
|
|
38
42
|
return callJson(native.testsWhyJson, options);
|
|
39
43
|
}
|
|
@@ -134,6 +138,7 @@ module.exports = {
|
|
|
134
138
|
testsComment,
|
|
135
139
|
testsGraph,
|
|
136
140
|
testsGraphMermaid,
|
|
141
|
+
testsImpact,
|
|
137
142
|
testsPlan,
|
|
138
143
|
testsWhy,
|
|
139
144
|
version,
|
package/package.json
CHANGED
package/test-types.d.ts
CHANGED
|
@@ -7,12 +7,24 @@ export interface TestsPlanOptions {
|
|
|
7
7
|
head?: string;
|
|
8
8
|
changedFiles?: string[];
|
|
9
9
|
changedFilesFile?: string;
|
|
10
|
+
/** Inline unified diff content to extract changed files from. */
|
|
11
|
+
diff?: string;
|
|
12
|
+
/** file#export entrypoints to trace impact from (union of all). */
|
|
13
|
+
entrypoints?: string[];
|
|
10
14
|
environment?: string;
|
|
11
15
|
limitPercent?: number;
|
|
12
16
|
limitFiles?: number;
|
|
13
17
|
globalConfigFallback?: boolean;
|
|
14
18
|
}
|
|
15
19
|
|
|
20
|
+
export interface TestsImpactOptions {
|
|
21
|
+
root?: string;
|
|
22
|
+
config?: string;
|
|
23
|
+
tsconfig?: string;
|
|
24
|
+
/** file#export entrypoints to trace impact from. */
|
|
25
|
+
entrypoints: string[];
|
|
26
|
+
}
|
|
27
|
+
|
|
16
28
|
export interface TestPlan {
|
|
17
29
|
selected_tests: SelectedTest[];
|
|
18
30
|
groups?: TestPlanGroup[];
|