@fliwright/tdd 0.1.0 → 0.1.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 +25 -3
- package/dist/baseline/BaselineManager.d.ts +3 -3
- package/dist/daemon/FlutterDaemonController.d.ts +1 -0
- package/dist/daemon/FlutterDaemonController.js +13 -2
- package/dist/daemon/SubprocessDaemonTransport.d.ts +3 -0
- package/dist/daemon/SubprocessDaemonTransport.js +25 -9
- package/dist/executor/FocusedRerunRecipe.js +9 -2
- package/dist/executor/PersistentTestExecutor.d.ts +1 -4
- package/dist/executor/PersistentTestExecutor.js +31 -38
- package/dist/executor/TestRunResults.d.ts +13 -0
- package/dist/executor/TestRunResults.js +19 -0
- package/dist/index.d.ts +3 -17
- package/dist/index.js +1 -8
- package/dist/runtime/TddRuntime.d.ts +5 -19
- package/dist/runtime/TddRuntime.js +78 -115
- package/dist/types.d.ts +17 -192
- package/package.json +4 -4
- package/dist/devassist/DevAssistCoordinator.d.ts +0 -74
- package/dist/devassist/DevAssistCoordinator.js +0 -388
- package/dist/executor/ResultReporter.d.ts +0 -23
- package/dist/executor/ResultReporter.js +0 -50
- package/dist/generator/RedFirstTestGenerator.d.ts +0 -32
- package/dist/generator/RedFirstTestGenerator.js +0 -189
- package/dist/repair/TddRepairPlanner.d.ts +0 -54
- package/dist/repair/TddRepairPlanner.js +0 -132
- package/dist/selectors/SelectorSynthesizer.d.ts +0 -34
- package/dist/selectors/SelectorSynthesizer.js +0 -174
- package/dist/spec/InteractionSpec.d.ts +0 -94
- package/dist/spec/InteractionSpec.js +0 -236
- package/dist/spec/InteractionSpecCoverage.d.ts +0 -17
- package/dist/spec/InteractionSpecCoverage.js +0 -69
- package/dist/workflow/RedFirstWorkflow.d.ts +0 -28
- package/dist/workflow/RedFirstWorkflow.js +0 -33
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
export class InteractionSpecValidationError extends Error {
|
|
2
|
-
issues;
|
|
3
|
-
constructor(issues) {
|
|
4
|
-
super(`Invalid InteractionSpec: ${issues.map((issue) => `${issue.path} ${issue.message}`).join('; ')}`);
|
|
5
|
-
this.issues = issues;
|
|
6
|
-
this.name = 'InteractionSpecValidationError';
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
const elementRoles = new Set([
|
|
10
|
-
'button',
|
|
11
|
-
'textbox',
|
|
12
|
-
'text',
|
|
13
|
-
'list',
|
|
14
|
-
'image',
|
|
15
|
-
'checkbox',
|
|
16
|
-
'switch',
|
|
17
|
-
'tab',
|
|
18
|
-
]);
|
|
19
|
-
const locatorStrategies = new Set(['key', 'semantics', 'text', 'type']);
|
|
20
|
-
const stepActions = new Set(['tap', 'type', 'select', 'waitFor', 'assertVisible']);
|
|
21
|
-
const assertionKinds = new Set(['visible', 'text', 'route', 'mockCalled', 'state']);
|
|
22
|
-
export function parseInteractionSpec(value) {
|
|
23
|
-
const result = validateInteractionSpec(value);
|
|
24
|
-
if (!result.ok)
|
|
25
|
-
throw new InteractionSpecValidationError(result.issues);
|
|
26
|
-
return result.spec;
|
|
27
|
-
}
|
|
28
|
-
export function validateInteractionSpec(value) {
|
|
29
|
-
const issues = [];
|
|
30
|
-
if (!isRecord(value)) {
|
|
31
|
-
return { ok: false, issues: [{ path: '$', message: 'must be an object.' }] };
|
|
32
|
-
}
|
|
33
|
-
const elements = readElements(value.elements, issues);
|
|
34
|
-
const elementIds = new Set(elements.map((element) => element.id));
|
|
35
|
-
const flows = readFlows(value.flows, elementIds, issues);
|
|
36
|
-
const assertions = readAssertions(value.assertions, '$.assertions', elementIds, issues);
|
|
37
|
-
if (elements.length === 0)
|
|
38
|
-
issues.push({ path: '$.elements', message: 'must include at least one element.' });
|
|
39
|
-
if (flows.length === 0)
|
|
40
|
-
issues.push({ path: '$.flows', message: 'must include at least one flow.' });
|
|
41
|
-
if (issues.length > 0)
|
|
42
|
-
return { ok: false, issues };
|
|
43
|
-
return {
|
|
44
|
-
ok: true,
|
|
45
|
-
spec: {
|
|
46
|
-
app: readApp(value.app),
|
|
47
|
-
initialState: readInitialState(value.initialState),
|
|
48
|
-
elements,
|
|
49
|
-
flows,
|
|
50
|
-
assertions,
|
|
51
|
-
},
|
|
52
|
-
issues: [],
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
function readElements(value, issues) {
|
|
56
|
-
if (!Array.isArray(value)) {
|
|
57
|
-
issues.push({ path: '$.elements', message: 'must be an array.' });
|
|
58
|
-
return [];
|
|
59
|
-
}
|
|
60
|
-
const seen = new Set();
|
|
61
|
-
return value.flatMap((raw, index) => {
|
|
62
|
-
const path = `$.elements[${index}]`;
|
|
63
|
-
if (!isRecord(raw)) {
|
|
64
|
-
issues.push({ path, message: 'must be an object.' });
|
|
65
|
-
return [];
|
|
66
|
-
}
|
|
67
|
-
const id = readRequiredString(raw.id, `${path}.id`, issues);
|
|
68
|
-
const name = readRequiredString(raw.name, `${path}.name`, issues);
|
|
69
|
-
const role = readRequiredEnum(raw.role, elementRoles, `${path}.role`, issues);
|
|
70
|
-
if (id) {
|
|
71
|
-
if (seen.has(id))
|
|
72
|
-
issues.push({ path: `${path}.id`, message: `duplicates element id '${id}'.` });
|
|
73
|
-
seen.add(id);
|
|
74
|
-
}
|
|
75
|
-
if (!id || !name || !role)
|
|
76
|
-
return [];
|
|
77
|
-
return [{
|
|
78
|
-
id,
|
|
79
|
-
role,
|
|
80
|
-
name,
|
|
81
|
-
text: readOptionalString(raw.text),
|
|
82
|
-
placeholder: readOptionalString(raw.placeholder),
|
|
83
|
-
figmaNodeId: readOptionalString(raw.figmaNodeId),
|
|
84
|
-
importance: raw.importance === 'optional' ? 'optional' : raw.importance === 'required' ? 'required' : undefined,
|
|
85
|
-
locatorHints: readLocatorHints(raw.locatorHints, `${path}.locatorHints`, issues),
|
|
86
|
-
}];
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
function readLocatorHints(value, path, issues) {
|
|
90
|
-
if (value === undefined)
|
|
91
|
-
return undefined;
|
|
92
|
-
if (!Array.isArray(value)) {
|
|
93
|
-
issues.push({ path, message: 'must be an array when provided.' });
|
|
94
|
-
return undefined;
|
|
95
|
-
}
|
|
96
|
-
const hints = value.flatMap((raw, index) => {
|
|
97
|
-
const hintPath = `${path}[${index}]`;
|
|
98
|
-
if (!isRecord(raw)) {
|
|
99
|
-
issues.push({ path: hintPath, message: 'must be an object.' });
|
|
100
|
-
return [];
|
|
101
|
-
}
|
|
102
|
-
const strategy = readRequiredEnum(raw.strategy, locatorStrategies, `${hintPath}.strategy`, issues);
|
|
103
|
-
const hintValue = readRequiredString(raw.value, `${hintPath}.value`, issues);
|
|
104
|
-
return strategy && hintValue ? [{ strategy, value: hintValue }] : [];
|
|
105
|
-
});
|
|
106
|
-
return hints.length > 0 ? hints : undefined;
|
|
107
|
-
}
|
|
108
|
-
function readFlows(value, elementIds, issues) {
|
|
109
|
-
if (!Array.isArray(value)) {
|
|
110
|
-
issues.push({ path: '$.flows', message: 'must be an array.' });
|
|
111
|
-
return [];
|
|
112
|
-
}
|
|
113
|
-
const seen = new Set();
|
|
114
|
-
return value.flatMap((raw, index) => {
|
|
115
|
-
const path = `$.flows[${index}]`;
|
|
116
|
-
if (!isRecord(raw)) {
|
|
117
|
-
issues.push({ path, message: 'must be an object.' });
|
|
118
|
-
return [];
|
|
119
|
-
}
|
|
120
|
-
const id = readRequiredString(raw.id, `${path}.id`, issues);
|
|
121
|
-
const name = readRequiredString(raw.name, `${path}.name`, issues);
|
|
122
|
-
if (id) {
|
|
123
|
-
if (seen.has(id))
|
|
124
|
-
issues.push({ path: `${path}.id`, message: `duplicates flow id '${id}'.` });
|
|
125
|
-
seen.add(id);
|
|
126
|
-
}
|
|
127
|
-
const steps = readSteps(raw.steps, `${path}.steps`, elementIds, issues);
|
|
128
|
-
const expectedOutcome = readAssertions(raw.expectedOutcome, `${path}.expectedOutcome`, elementIds, issues);
|
|
129
|
-
return id && name ? [{ id, name, steps, expectedOutcome }] : [];
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
function readSteps(value, path, elementIds, issues) {
|
|
133
|
-
if (!Array.isArray(value)) {
|
|
134
|
-
issues.push({ path, message: 'must be an array.' });
|
|
135
|
-
return [];
|
|
136
|
-
}
|
|
137
|
-
return value.flatMap((raw, index) => {
|
|
138
|
-
const stepPath = `${path}[${index}]`;
|
|
139
|
-
if (!isRecord(raw)) {
|
|
140
|
-
issues.push({ path: stepPath, message: 'must be an object.' });
|
|
141
|
-
return [];
|
|
142
|
-
}
|
|
143
|
-
const action = readRequiredEnum(raw.action, stepActions, `${stepPath}.action`, issues);
|
|
144
|
-
const target = readTarget(raw.target, `${stepPath}.target`, elementIds, issues);
|
|
145
|
-
if (!action || !target)
|
|
146
|
-
return [];
|
|
147
|
-
if (action === 'type' || action === 'select') {
|
|
148
|
-
const stepValue = readRequiredString(raw.value, `${stepPath}.value`, issues);
|
|
149
|
-
return stepValue ? [{ action, target, value: stepValue }] : [];
|
|
150
|
-
}
|
|
151
|
-
return [{ action, target }];
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
function readAssertions(value, path, elementIds, issues) {
|
|
155
|
-
if (value === undefined)
|
|
156
|
-
return undefined;
|
|
157
|
-
if (!Array.isArray(value)) {
|
|
158
|
-
issues.push({ path, message: 'must be an array when provided.' });
|
|
159
|
-
return undefined;
|
|
160
|
-
}
|
|
161
|
-
const assertions = value.flatMap((raw, index) => {
|
|
162
|
-
const assertionPath = `${path}[${index}]`;
|
|
163
|
-
if (!isRecord(raw)) {
|
|
164
|
-
issues.push({ path: assertionPath, message: 'must be an object.' });
|
|
165
|
-
return [];
|
|
166
|
-
}
|
|
167
|
-
const kind = readRequiredEnum(raw.kind, assertionKinds, `${assertionPath}.kind`, issues);
|
|
168
|
-
if (!kind)
|
|
169
|
-
return [];
|
|
170
|
-
if (kind === 'route') {
|
|
171
|
-
const equals = readRequiredString(raw.equals, `${assertionPath}.equals`, issues);
|
|
172
|
-
return equals ? [{ kind, equals }] : [];
|
|
173
|
-
}
|
|
174
|
-
if (kind === 'mockCalled') {
|
|
175
|
-
const endpoint = readRequiredString(raw.endpoint, `${assertionPath}.endpoint`, issues);
|
|
176
|
-
return endpoint ? [{ kind, endpoint, method: readOptionalString(raw.method) }] : [];
|
|
177
|
-
}
|
|
178
|
-
if (kind === 'state') {
|
|
179
|
-
const statePath = readRequiredString(raw.path, `${assertionPath}.path`, issues);
|
|
180
|
-
return statePath ? [{ kind, path: statePath, equals: raw.equals }] : [];
|
|
181
|
-
}
|
|
182
|
-
const target = readTarget(raw.target, `${assertionPath}.target`, elementIds, issues);
|
|
183
|
-
if (!target)
|
|
184
|
-
return [];
|
|
185
|
-
if (kind === 'text') {
|
|
186
|
-
return [{ kind, target, equals: readOptionalString(raw.equals), contains: readOptionalString(raw.contains) }];
|
|
187
|
-
}
|
|
188
|
-
return [{ kind, target }];
|
|
189
|
-
});
|
|
190
|
-
return assertions.length > 0 ? assertions : undefined;
|
|
191
|
-
}
|
|
192
|
-
function readTarget(value, path, elementIds, issues) {
|
|
193
|
-
const target = readRequiredString(value, path, issues);
|
|
194
|
-
if (target && !elementIds.has(target)) {
|
|
195
|
-
issues.push({ path, message: `references unknown element id '${target}'.` });
|
|
196
|
-
}
|
|
197
|
-
return target;
|
|
198
|
-
}
|
|
199
|
-
function readApp(value) {
|
|
200
|
-
if (!isRecord(value))
|
|
201
|
-
return undefined;
|
|
202
|
-
return {
|
|
203
|
-
platform: value.platform === 'flutter' ? 'flutter' : undefined,
|
|
204
|
-
route: readOptionalString(value.route),
|
|
205
|
-
screenName: readOptionalString(value.screenName),
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
function readInitialState(value) {
|
|
209
|
-
if (!isRecord(value))
|
|
210
|
-
return undefined;
|
|
211
|
-
return {
|
|
212
|
-
route: readOptionalString(value.route),
|
|
213
|
-
mockProfile: readOptionalString(value.mockProfile),
|
|
214
|
-
riverpodOverrides: Array.isArray(value.riverpodOverrides) ? value.riverpodOverrides : undefined,
|
|
215
|
-
storageSeed: isRecord(value.storageSeed) ? value.storageSeed : undefined,
|
|
216
|
-
authState: value.authState === 'guest' || value.authState === 'authenticated' ? value.authState : undefined,
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
function readRequiredString(value, path, issues) {
|
|
220
|
-
if (typeof value === 'string' && value.trim().length > 0)
|
|
221
|
-
return value;
|
|
222
|
-
issues.push({ path, message: 'must be a non-empty string.' });
|
|
223
|
-
return undefined;
|
|
224
|
-
}
|
|
225
|
-
function readOptionalString(value) {
|
|
226
|
-
return typeof value === 'string' && value.trim().length > 0 ? value : undefined;
|
|
227
|
-
}
|
|
228
|
-
function readRequiredEnum(value, allowed, path, issues) {
|
|
229
|
-
if (typeof value === 'string' && allowed.has(value))
|
|
230
|
-
return value;
|
|
231
|
-
issues.push({ path, message: `must be one of ${[...allowed].join(', ')}.` });
|
|
232
|
-
return undefined;
|
|
233
|
-
}
|
|
234
|
-
function isRecord(value) {
|
|
235
|
-
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
236
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export type InteractionSpecCoverageGapKind = 'missing-flow-outcome' | 'unreferenced-required-element' | 'unasserted-required-element';
|
|
2
|
-
export interface InteractionSpecCoverageGap {
|
|
3
|
-
kind: InteractionSpecCoverageGapKind;
|
|
4
|
-
path: string;
|
|
5
|
-
message: string;
|
|
6
|
-
elementId?: string;
|
|
7
|
-
flowId?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface InteractionSpecCoverageReport {
|
|
10
|
-
status: 'complete' | 'has-gaps';
|
|
11
|
-
flowCount: number;
|
|
12
|
-
elementCount: number;
|
|
13
|
-
coveredElementIds: string[];
|
|
14
|
-
assertedElementIds: string[];
|
|
15
|
-
gaps: InteractionSpecCoverageGap[];
|
|
16
|
-
}
|
|
17
|
-
export declare function analyzeInteractionSpecCoverage(value: unknown): InteractionSpecCoverageReport;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { parseInteractionSpec } from './InteractionSpec.js';
|
|
2
|
-
export function analyzeInteractionSpecCoverage(value) {
|
|
3
|
-
const spec = parseInteractionSpec(value);
|
|
4
|
-
const coveredElementIds = new Set();
|
|
5
|
-
const assertedElementIds = new Set();
|
|
6
|
-
const gaps = [];
|
|
7
|
-
const globalAssertions = spec.assertions ?? [];
|
|
8
|
-
spec.flows.forEach((flow, flowIndex) => {
|
|
9
|
-
collectStepTargets(flow, coveredElementIds);
|
|
10
|
-
collectAssertionTargets(flow.expectedOutcome ?? [], assertedElementIds);
|
|
11
|
-
if ((flow.expectedOutcome?.length ?? 0) === 0 && globalAssertions.length === 0) {
|
|
12
|
-
gaps.push({
|
|
13
|
-
kind: 'missing-flow-outcome',
|
|
14
|
-
path: `$.flows[${flowIndex}].expectedOutcome`,
|
|
15
|
-
flowId: flow.id,
|
|
16
|
-
message: `Flow '${flow.name}' has no expectedOutcome and the spec has no global assertions.`,
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
collectAssertionTargets(globalAssertions, assertedElementIds);
|
|
21
|
-
for (const elementId of assertedElementIds)
|
|
22
|
-
coveredElementIds.add(elementId);
|
|
23
|
-
spec.elements.forEach((element, index) => {
|
|
24
|
-
if (element.importance !== 'required')
|
|
25
|
-
return;
|
|
26
|
-
if (!coveredElementIds.has(element.id)) {
|
|
27
|
-
gaps.push({
|
|
28
|
-
kind: 'unreferenced-required-element',
|
|
29
|
-
path: `$.elements[${index}]`,
|
|
30
|
-
elementId: element.id,
|
|
31
|
-
message: `Required element '${element.name}' is not referenced by any step or assertion.`,
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
if (shouldAssertElement(element) && !assertedElementIds.has(element.id)) {
|
|
35
|
-
gaps.push({
|
|
36
|
-
kind: 'unasserted-required-element',
|
|
37
|
-
path: `$.elements[${index}]`,
|
|
38
|
-
elementId: element.id,
|
|
39
|
-
message: `Required ${element.role} '${element.name}' is not asserted by any expected outcome.`,
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
return {
|
|
44
|
-
status: gaps.length > 0 ? 'has-gaps' : 'complete',
|
|
45
|
-
flowCount: spec.flows.length,
|
|
46
|
-
elementCount: spec.elements.length,
|
|
47
|
-
coveredElementIds: [...coveredElementIds].sort(),
|
|
48
|
-
assertedElementIds: [...assertedElementIds].sort(),
|
|
49
|
-
gaps,
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
function collectStepTargets(flow, coveredElementIds) {
|
|
53
|
-
for (const step of flow.steps)
|
|
54
|
-
coveredElementIds.add(step.target);
|
|
55
|
-
}
|
|
56
|
-
function collectAssertionTargets(assertions, assertedElementIds) {
|
|
57
|
-
for (const assertion of assertions) {
|
|
58
|
-
if ('target' in assertion)
|
|
59
|
-
assertedElementIds.add(assertion.target);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
function shouldAssertElement(element) {
|
|
63
|
-
return element.role === 'text'
|
|
64
|
-
|| element.role === 'image'
|
|
65
|
-
|| element.role === 'list'
|
|
66
|
-
|| element.role === 'checkbox'
|
|
67
|
-
|| element.role === 'switch'
|
|
68
|
-
|| element.role === 'tab';
|
|
69
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { RedFirstTestGeneratorOptions } from '../generator/RedFirstTestGenerator.js';
|
|
2
|
-
import type { InteractionSpec } from '../spec/InteractionSpec.js';
|
|
3
|
-
import type { InteractionSpecCoverageReport } from '../spec/InteractionSpecCoverage.js';
|
|
4
|
-
import type { SelectorSynthesisResult } from '../selectors/SelectorSynthesizer.js';
|
|
5
|
-
export type RedFirstWorkflowStatus = 'ready-to-run' | 'needs-output-file' | 'needs-coverage-review' | 'needs-selector-review';
|
|
6
|
-
export interface RedFirstWorkflowOptions extends RedFirstTestGeneratorOptions {
|
|
7
|
-
testFile?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface RedFirstWorkflowContext {
|
|
10
|
-
testName: string;
|
|
11
|
-
flowId?: string;
|
|
12
|
-
testFile?: string;
|
|
13
|
-
selectorDiagnostics: SelectorSynthesisResult[];
|
|
14
|
-
}
|
|
15
|
-
export interface RedFirstWorkflowPlan {
|
|
16
|
-
status: RedFirstWorkflowStatus;
|
|
17
|
-
context: RedFirstWorkflowContext;
|
|
18
|
-
coverage: InteractionSpecCoverageReport;
|
|
19
|
-
}
|
|
20
|
-
export interface PrepareRedFirstWorkflowResult {
|
|
21
|
-
testCode: string;
|
|
22
|
-
testName: string;
|
|
23
|
-
flowId?: string;
|
|
24
|
-
warnings: string[];
|
|
25
|
-
selectorDiagnostics: SelectorSynthesisResult[];
|
|
26
|
-
workflow: RedFirstWorkflowPlan;
|
|
27
|
-
}
|
|
28
|
-
export declare function prepareRedFirstWorkflow(spec: InteractionSpec, options?: RedFirstWorkflowOptions): PrepareRedFirstWorkflowResult;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { generateRedFirstTest } from '../generator/RedFirstTestGenerator.js';
|
|
2
|
-
import { analyzeInteractionSpecCoverage } from '../spec/InteractionSpecCoverage.js';
|
|
3
|
-
export function prepareRedFirstWorkflow(spec, options = {}) {
|
|
4
|
-
const generated = generateRedFirstTest(spec, options);
|
|
5
|
-
const coverage = analyzeInteractionSpecCoverage(spec);
|
|
6
|
-
const context = {
|
|
7
|
-
testName: generated.testName,
|
|
8
|
-
flowId: generated.flowId,
|
|
9
|
-
testFile: options.testFile,
|
|
10
|
-
selectorDiagnostics: generated.selectorDiagnostics,
|
|
11
|
-
};
|
|
12
|
-
const status = workflowStatus(context, coverage);
|
|
13
|
-
return {
|
|
14
|
-
...generated,
|
|
15
|
-
workflow: {
|
|
16
|
-
status,
|
|
17
|
-
context,
|
|
18
|
-
coverage,
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
function workflowStatus(context, coverage) {
|
|
23
|
-
const needsSelectorReview = context.selectorDiagnostics.some((diagnostic) => (diagnostic.status === 'ambiguous'
|
|
24
|
-
|| diagnostic.status === 'missing'
|
|
25
|
-
|| diagnostic.status === 'hint-only'));
|
|
26
|
-
if (needsSelectorReview)
|
|
27
|
-
return 'needs-selector-review';
|
|
28
|
-
if (coverage.status === 'has-gaps')
|
|
29
|
-
return 'needs-coverage-review';
|
|
30
|
-
if (!context.testFile)
|
|
31
|
-
return 'needs-output-file';
|
|
32
|
-
return 'ready-to-run';
|
|
33
|
-
}
|