@ploaness/config 1.11.0 → 1.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/dist/a11y.d.ts +13 -5
- package/dist/a11y.d.ts.map +1 -1
- package/dist/a11y.js +20 -11
- package/dist/a11y.js.map +1 -1
- package/dist/clock-preload.d.ts +2 -0
- package/dist/clock-preload.d.ts.map +1 -0
- package/dist/clock-preload.js +37 -0
- package/dist/clock-preload.js.map +1 -0
- package/dist/eslint-immutability.d.ts.map +1 -1
- package/dist/eslint-immutability.js +37 -4
- package/dist/eslint-immutability.js.map +1 -1
- package/dist/eslint-library.d.ts.map +1 -1
- package/dist/eslint-library.js +6 -1
- package/dist/eslint-library.js.map +1 -1
- package/dist/eslint-runtime.d.ts +11 -0
- package/dist/eslint-runtime.d.ts.map +1 -0
- package/dist/eslint-runtime.js +68 -0
- package/dist/eslint-runtime.js.map +1 -0
- package/dist/eslint.d.ts.map +1 -1
- package/dist/eslint.js +6 -1
- package/dist/eslint.js.map +1 -1
- package/dist/layout.d.ts +34 -16
- package/dist/layout.d.ts.map +1 -1
- package/dist/layout.js +228 -56
- package/dist/layout.js.map +1 -1
- package/dist/payload-view.d.ts +16 -0
- package/dist/payload-view.d.ts.map +1 -0
- package/dist/payload-view.js +35 -0
- package/dist/payload-view.js.map +1 -0
- package/dist/playwright.d.ts.map +1 -1
- package/dist/playwright.js +115 -12
- package/dist/playwright.js.map +1 -1
- package/dist/scanner.d.ts +99 -0
- package/dist/scanner.d.ts.map +1 -0
- package/dist/scanner.js +278 -0
- package/dist/scanner.js.map +1 -0
- package/dist/settle.d.ts +8 -6
- package/dist/settle.d.ts.map +1 -1
- package/dist/settle.js +55 -42
- package/dist/settle.js.map +1 -1
- package/dist/sweep-disclosures.d.ts +10 -0
- package/dist/sweep-disclosures.d.ts.map +1 -0
- package/dist/sweep-disclosures.js +179 -0
- package/dist/sweep-disclosures.js.map +1 -0
- package/dist/sweep-discovery.d.ts +15 -0
- package/dist/sweep-discovery.d.ts.map +1 -0
- package/dist/sweep-discovery.js +336 -0
- package/dist/sweep-discovery.js.map +1 -0
- package/dist/sweep-interaction.d.ts +19 -0
- package/dist/sweep-interaction.d.ts.map +1 -0
- package/dist/sweep-interaction.js +351 -0
- package/dist/sweep-interaction.js.map +1 -0
- package/dist/sweep-queue.d.ts +24 -0
- package/dist/sweep-queue.d.ts.map +1 -0
- package/dist/sweep-queue.js +56 -0
- package/dist/sweep-queue.js.map +1 -0
- package/dist/sweep-reflow.d.ts +17 -0
- package/dist/sweep-reflow.d.ts.map +1 -0
- package/dist/sweep-reflow.js +210 -0
- package/dist/sweep-reflow.js.map +1 -0
- package/dist/sweep-resting.d.ts +25 -0
- package/dist/sweep-resting.d.ts.map +1 -0
- package/dist/sweep-resting.js +98 -0
- package/dist/sweep-resting.js.map +1 -0
- package/dist/sweep-shared.d.ts +353 -0
- package/dist/sweep-shared.d.ts.map +1 -0
- package/dist/sweep-shared.js +434 -0
- package/dist/sweep-shared.js.map +1 -0
- package/dist/sweep.d.ts +14 -0
- package/dist/sweep.d.ts.map +1 -0
- package/dist/sweep.js +157 -0
- package/dist/sweep.js.map +1 -0
- package/dist/vitest-core.d.ts +1 -1
- package/dist/vitest-core.js +1 -1
- package/dist/vitest-library.d.ts.map +1 -1
- package/dist/vitest-library.js +2 -1
- package/dist/vitest-library.js.map +1 -1
- package/package.json +10 -2
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
import { type Page, type TestInfo } from '@playwright/test';
|
|
2
|
+
import { type BrowserFinding, type DeclaredExemption, type DiscoveredStory, type FindingPlace, type FindingViewport, type JudgedPage, type Shard, type ShardItem, type SweepPass, type TemplateSample, type UsedExemption } from '@ploaness/governance';
|
|
3
|
+
import { type PlaceScan } from './scanner.js';
|
|
4
|
+
export type { Shard } from '@ploaness/governance';
|
|
5
|
+
export interface DomRect {
|
|
6
|
+
readonly left: number;
|
|
7
|
+
readonly top: number;
|
|
8
|
+
readonly right: number;
|
|
9
|
+
readonly bottom: number;
|
|
10
|
+
readonly width: number;
|
|
11
|
+
readonly height: number;
|
|
12
|
+
}
|
|
13
|
+
export interface DomStyle {
|
|
14
|
+
readonly clipPath: string;
|
|
15
|
+
readonly position: string;
|
|
16
|
+
readonly fontSize: string;
|
|
17
|
+
readonly lineHeight: string;
|
|
18
|
+
readonly getPropertyValue: (property: string) => string;
|
|
19
|
+
readonly setProperty: (property: string, value: string, priority: string) => void;
|
|
20
|
+
}
|
|
21
|
+
export interface DomNode {
|
|
22
|
+
readonly nodeType: number;
|
|
23
|
+
readonly textContent: string | null;
|
|
24
|
+
}
|
|
25
|
+
export interface DomElement {
|
|
26
|
+
readonly tagName: string;
|
|
27
|
+
readonly id: string;
|
|
28
|
+
readonly parentElement: DomElement | null;
|
|
29
|
+
readonly childNodes: ArrayLike<DomNode>;
|
|
30
|
+
readonly style: DomStyle;
|
|
31
|
+
readonly ownerDocument: DomDocument;
|
|
32
|
+
readonly getBoundingClientRect: () => DomRect;
|
|
33
|
+
readonly contains: (other: DomElement) => boolean;
|
|
34
|
+
readonly closest: (selector: string) => DomElement | null;
|
|
35
|
+
readonly getRootNode: () => unknown;
|
|
36
|
+
readonly getAttribute: (name: string) => string | null;
|
|
37
|
+
readonly setAttribute: (name: string, value: string) => void;
|
|
38
|
+
readonly removeAttribute: (name: string) => void;
|
|
39
|
+
readonly checkVisibility: () => boolean;
|
|
40
|
+
readonly scrollIntoView: (options: {
|
|
41
|
+
readonly block: string;
|
|
42
|
+
readonly inline: string;
|
|
43
|
+
}) => void;
|
|
44
|
+
readonly querySelectorAll: (selector: string) => ArrayLike<DomElement>;
|
|
45
|
+
readonly blur?: () => void;
|
|
46
|
+
}
|
|
47
|
+
export interface DomDocument {
|
|
48
|
+
readonly body: DomElement;
|
|
49
|
+
readonly activeElement: DomElement | null;
|
|
50
|
+
readonly documentElement: DomElement & {
|
|
51
|
+
readonly clientWidth: number;
|
|
52
|
+
readonly clientHeight: number;
|
|
53
|
+
};
|
|
54
|
+
readonly styleSheets: ArrayLike<{
|
|
55
|
+
readonly cssRules?: ArrayLike<CssRule>;
|
|
56
|
+
}>;
|
|
57
|
+
readonly elementFromPoint: (x: number, y: number) => DomElement | null;
|
|
58
|
+
readonly querySelector: (selector: string) => DomElement | null;
|
|
59
|
+
readonly querySelectorAll: (selector: string) => ArrayLike<DomElement>;
|
|
60
|
+
}
|
|
61
|
+
export interface CssRule {
|
|
62
|
+
readonly media?: {
|
|
63
|
+
readonly mediaText: string;
|
|
64
|
+
};
|
|
65
|
+
readonly selectorText?: string;
|
|
66
|
+
readonly cssRules?: ArrayLike<CssRule>;
|
|
67
|
+
}
|
|
68
|
+
/** The window's `getComputedStyle`, which each module declares where its page functions call it. */
|
|
69
|
+
export type ComputedStyleOf = (element: DomElement) => DomStyle;
|
|
70
|
+
/** One page the passes scan: a crawled route or a Storybook story, with what discovery read from it. */
|
|
71
|
+
export interface SweepLocation {
|
|
72
|
+
readonly location: string;
|
|
73
|
+
readonly url: string;
|
|
74
|
+
readonly isStory: boolean;
|
|
75
|
+
readonly edges: readonly number[];
|
|
76
|
+
readonly hasDarkMedia: boolean;
|
|
77
|
+
readonly controls: number;
|
|
78
|
+
}
|
|
79
|
+
/** What discovery hands every later pass. */
|
|
80
|
+
export interface Discovery {
|
|
81
|
+
readonly routes: readonly string[];
|
|
82
|
+
readonly stories: readonly DiscoveredStory[];
|
|
83
|
+
readonly locations: readonly SweepLocation[];
|
|
84
|
+
readonly samples: readonly TemplateSample[];
|
|
85
|
+
}
|
|
86
|
+
/** What a shard of a pass leaves for the summary. */
|
|
87
|
+
export interface PassReport {
|
|
88
|
+
readonly pass: SweepPass;
|
|
89
|
+
readonly engine: string;
|
|
90
|
+
readonly shard: Shard;
|
|
91
|
+
readonly findings: readonly BrowserFinding[];
|
|
92
|
+
readonly used: readonly UsedExemption[];
|
|
93
|
+
readonly declared: readonly DeclaredExemption[];
|
|
94
|
+
readonly judgedRules: readonly string[];
|
|
95
|
+
readonly places: number;
|
|
96
|
+
readonly locations: readonly string[];
|
|
97
|
+
readonly notes: readonly string[];
|
|
98
|
+
/** How long the shard took, which is what its budget allowance is calibrated against. */
|
|
99
|
+
readonly elapsedMs: number;
|
|
100
|
+
}
|
|
101
|
+
/** What the sweep covers: everything, or the routes and stories a `delta` run's change reaches. */
|
|
102
|
+
export interface ScopeRecord {
|
|
103
|
+
/** True when a change scope narrowed the sweep, so its coverage is not complete. */
|
|
104
|
+
readonly isScoped: boolean;
|
|
105
|
+
/** The level, the baseline, the changed files, and each route and story with the reason it is swept. */
|
|
106
|
+
readonly lines: readonly string[];
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* What discovery leaves for the summary. Discovery records its problems rather than failing on them,
|
|
110
|
+
* because every pass depends on it and a failed dependency would stop them all; the summary judges them.
|
|
111
|
+
*/
|
|
112
|
+
export interface DiscoveryReport {
|
|
113
|
+
readonly findings: readonly BrowserFinding[];
|
|
114
|
+
/** Why the discovery is incomplete: the seed did not answer, the route cap, declared pages unswept. */
|
|
115
|
+
readonly problems: readonly string[];
|
|
116
|
+
readonly places: number;
|
|
117
|
+
readonly locations: readonly string[];
|
|
118
|
+
readonly elapsedMs: number;
|
|
119
|
+
readonly scope: ScopeRecord;
|
|
120
|
+
}
|
|
121
|
+
/** What visiting one item of a pass yields. */
|
|
122
|
+
export interface Visit extends JudgedPage {
|
|
123
|
+
readonly notes: readonly string[];
|
|
124
|
+
}
|
|
125
|
+
export declare const EMPTY_VISIT: Visit;
|
|
126
|
+
export declare const CONTROLS: string;
|
|
127
|
+
export declare const CHROME: string;
|
|
128
|
+
export declare const PROBE_ATTRIBUTE: string;
|
|
129
|
+
export declare const DISCLOSURE_ATTRIBUTE: string;
|
|
130
|
+
export declare const STILL_STYLE: string;
|
|
131
|
+
export declare const DESKTOP: FindingViewport;
|
|
132
|
+
/**
|
|
133
|
+
* The directory every engine's passes hand their files through. Every project shares the config's
|
|
134
|
+
* output directory, so discovery, run once, is read from here by every engine.
|
|
135
|
+
* @param info the running test.
|
|
136
|
+
* @returns the directory.
|
|
137
|
+
*/
|
|
138
|
+
export declare const sweepRoot: (info: TestInfo) => string;
|
|
139
|
+
/**
|
|
140
|
+
* The directory the passes of one engine write their reports and progress to.
|
|
141
|
+
* @param info the running test.
|
|
142
|
+
* @param engine the engine.
|
|
143
|
+
* @returns the directory.
|
|
144
|
+
*/
|
|
145
|
+
export declare const engineDirectory: (info: TestInfo, engine: string) => string;
|
|
146
|
+
/**
|
|
147
|
+
* Write a value as indented JSON, creating its directory.
|
|
148
|
+
* @param file the file to write.
|
|
149
|
+
* @param value the value.
|
|
150
|
+
*/
|
|
151
|
+
export declare const writeJson: (file: string, value: unknown) => void;
|
|
152
|
+
/**
|
|
153
|
+
* Read a JSON file another pass wrote, as the shape that pass writes.
|
|
154
|
+
* @param file the file to read.
|
|
155
|
+
* @param isShape whether a parsed value has the shape.
|
|
156
|
+
* @returns the parsed value, or undefined when it is absent, unreadable or of another shape.
|
|
157
|
+
*/
|
|
158
|
+
export declare const readJson: <Shape>(file: string, isShape: (value: unknown) => value is Shape) => Shape | undefined;
|
|
159
|
+
/**
|
|
160
|
+
* Whether a parsed value is what discovery writes for the later passes.
|
|
161
|
+
* @param value the parsed value.
|
|
162
|
+
* @returns whether it carries every list a discovery has.
|
|
163
|
+
*/
|
|
164
|
+
export declare const isDiscovery: (value: unknown) => value is Discovery;
|
|
165
|
+
/**
|
|
166
|
+
* Whether a parsed value is what discovery writes for the summary.
|
|
167
|
+
* @param value the parsed value.
|
|
168
|
+
* @returns whether it carries every field a discovery report has.
|
|
169
|
+
*/
|
|
170
|
+
export declare const isDiscoveryReport: (value: unknown) => value is DiscoveryReport;
|
|
171
|
+
/**
|
|
172
|
+
* Whether a parsed value is what a shard of a pass writes for the summary.
|
|
173
|
+
* @param value the parsed value.
|
|
174
|
+
* @returns whether it carries every field a pass report has.
|
|
175
|
+
*/
|
|
176
|
+
export declare const isPassReport: (value: unknown) => value is PassReport;
|
|
177
|
+
/**
|
|
178
|
+
* The file discovery writes for every later pass, in every engine.
|
|
179
|
+
* @param info the running test.
|
|
180
|
+
* @returns the file.
|
|
181
|
+
*/
|
|
182
|
+
export declare const discoveryFile: (info: TestInfo) => string;
|
|
183
|
+
/**
|
|
184
|
+
* The file discovery writes its findings and problems to, for the summary.
|
|
185
|
+
* @param info the running test.
|
|
186
|
+
* @returns the file.
|
|
187
|
+
*/
|
|
188
|
+
export declare const discoveryReportFile: (info: TestInfo) => string;
|
|
189
|
+
/**
|
|
190
|
+
* How a report file names one shard of a pass.
|
|
191
|
+
* @param pass the pass.
|
|
192
|
+
* @param shard the shard.
|
|
193
|
+
* @returns the file's name.
|
|
194
|
+
*/
|
|
195
|
+
export declare const reportName: (pass: SweepPass, shard: Shard) => string;
|
|
196
|
+
/**
|
|
197
|
+
* The file one shard of a pass writes its report to.
|
|
198
|
+
* @param info the running test.
|
|
199
|
+
* @param engine the engine it ran in.
|
|
200
|
+
* @param pass the pass.
|
|
201
|
+
* @param shard the shard.
|
|
202
|
+
* @returns the file.
|
|
203
|
+
*/
|
|
204
|
+
export declare const reportFile: (info: TestInfo, engine: string, pass: SweepPass, shard: Shard) => string;
|
|
205
|
+
/**
|
|
206
|
+
* What discovery recorded, failing the test when it recorded nothing.
|
|
207
|
+
* @param info the running test.
|
|
208
|
+
* @returns the discovery.
|
|
209
|
+
*/
|
|
210
|
+
export declare const readDiscovery: (info: TestInfo) => Discovery;
|
|
211
|
+
export declare const origin: string;
|
|
212
|
+
/** Block every request outside the application and its auxiliary servers, and fix the browser's `Date`. */
|
|
213
|
+
export declare const preparePage: (page: Page) => Promise<void>;
|
|
214
|
+
/**
|
|
215
|
+
* Load a location fresh at a viewport, still, with a story rendered and played.
|
|
216
|
+
* @param page the test's page.
|
|
217
|
+
* @param location the location.
|
|
218
|
+
* @param viewport the viewport.
|
|
219
|
+
* @param place where findings about the load are made.
|
|
220
|
+
* @returns findings about the load itself.
|
|
221
|
+
*/
|
|
222
|
+
export declare const loadLocation: (page: Page, location: SweepLocation, viewport: FindingViewport, place: FindingPlace) => Promise<readonly BrowserFinding[]>;
|
|
223
|
+
/**
|
|
224
|
+
* Where a finding at a location was made.
|
|
225
|
+
* @param page the test's page.
|
|
226
|
+
* @param location the location.
|
|
227
|
+
* @param viewport the viewport, or undefined for a finding about the whole location.
|
|
228
|
+
* @param state the state the location was in.
|
|
229
|
+
* @returns the place.
|
|
230
|
+
*/
|
|
231
|
+
export declare const placeAt: (page: Page, location: SweepLocation, viewport: FindingViewport | undefined, state: string) => FindingPlace;
|
|
232
|
+
/**
|
|
233
|
+
* The page errors and failed requests of a location since its last navigation.
|
|
234
|
+
* @param page the test's page.
|
|
235
|
+
* @param place where the page is.
|
|
236
|
+
* @returns the visit carrying them.
|
|
237
|
+
*/
|
|
238
|
+
export declare const healthOf: (page: Page, place: FindingPlace) => Promise<Visit>;
|
|
239
|
+
/**
|
|
240
|
+
* Several visits as one.
|
|
241
|
+
* @param visits the visits.
|
|
242
|
+
* @returns their findings, exemptions and notes together.
|
|
243
|
+
*/
|
|
244
|
+
export declare const merged: (visits: readonly Visit[]) => Visit;
|
|
245
|
+
/**
|
|
246
|
+
* Attach a screenshot of a failing place with its failing elements outlined, up to a cap per pass.
|
|
247
|
+
* @param page the test's page.
|
|
248
|
+
* @param scan what was found there.
|
|
249
|
+
* @param place where it was found.
|
|
250
|
+
* @param number how many places the pass visited before this one.
|
|
251
|
+
*/
|
|
252
|
+
export declare const screenshotOf: (page: Page, scan: PlaceScan, place: FindingPlace, number: number) => Promise<void>;
|
|
253
|
+
/** The whole of a pass that is not split, which is discovery. */
|
|
254
|
+
export declare const WHOLE_PASS: Shard;
|
|
255
|
+
/** The time one shard of a pass may spend, where it records its progress, and the queue it takes from. */
|
|
256
|
+
export interface Budget {
|
|
257
|
+
readonly pass: SweepPass;
|
|
258
|
+
readonly shard: Shard;
|
|
259
|
+
readonly progressFile: string;
|
|
260
|
+
readonly queue: string;
|
|
261
|
+
readonly startedAt: number;
|
|
262
|
+
readonly deadline: number;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Start a shard's budget and set its test's timeout beyond it.
|
|
266
|
+
* @param page the test's page, whose engine names the progress log.
|
|
267
|
+
* @param pass the pass.
|
|
268
|
+
* @param shard the shard.
|
|
269
|
+
* @param units how many units of work the whole pass has.
|
|
270
|
+
* @returns the budget.
|
|
271
|
+
*/
|
|
272
|
+
export declare const armBudget: (page: Page, pass: SweepPass, shard: Shard, units: number) => Budget;
|
|
273
|
+
/**
|
|
274
|
+
* How many units of work a pass's items carry, for its budget.
|
|
275
|
+
* @param items the pass's items.
|
|
276
|
+
* @param unitsOf the units one item carries.
|
|
277
|
+
* @returns their sum.
|
|
278
|
+
*/
|
|
279
|
+
export declare const passUnits: <Item>(items: readonly Item[], unitsOf: (item: Item) => number) => number;
|
|
280
|
+
/** How a pass visits its items. */
|
|
281
|
+
interface ItemVisitor<Item> {
|
|
282
|
+
readonly budget: Budget;
|
|
283
|
+
readonly labelOf: (item: Item) => string;
|
|
284
|
+
/** Visit an item; the index is its place in the whole pass, not in the shard. */
|
|
285
|
+
readonly visit: (item: Item, index: number) => Promise<Visit>;
|
|
286
|
+
}
|
|
287
|
+
/** What one shard of a pass visited: a visit per item it took, and the items with their index in the pass. */
|
|
288
|
+
export interface ShardVisits<Item> {
|
|
289
|
+
readonly visits: readonly Visit[];
|
|
290
|
+
readonly taken: readonly ShardItem<Item>[];
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Take items of a pass from the queue its shards share and visit each, until none is left or the shard
|
|
294
|
+
* runs out of budget, which it reports at the first item it left untaken.
|
|
295
|
+
* @param items every item of the pass, in order.
|
|
296
|
+
* @param visitor the budget, and how to name and visit an item.
|
|
297
|
+
* @param from the index to look for the next untaken item at.
|
|
298
|
+
* @returns the visits, a budget finding among them when the shard stopped early, and the items it took.
|
|
299
|
+
*/
|
|
300
|
+
export declare const visitAll: <Item>(items: readonly Item[], visitor: ItemVisitor<Item>, from?: number) => Promise<ShardVisits<Item>>;
|
|
301
|
+
/** What a finished pass hands to its report. */
|
|
302
|
+
interface FinishedPass {
|
|
303
|
+
readonly budget: Budget;
|
|
304
|
+
readonly pass: SweepPass;
|
|
305
|
+
readonly visits: readonly Visit[];
|
|
306
|
+
readonly judgedRules: readonly string[];
|
|
307
|
+
readonly locations: readonly string[];
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Write a shard's report for the summary, and fail the shard's test on any finding.
|
|
311
|
+
* @param page the test's page.
|
|
312
|
+
* @param finished the pass, its visits, the rules it judged and the locations it covered.
|
|
313
|
+
*/
|
|
314
|
+
export declare const finishPass: (page: Page, finished: FinishedPass) => void;
|
|
315
|
+
/**
|
|
316
|
+
* Whether the test runs in Chromium.
|
|
317
|
+
* @param page the test's page.
|
|
318
|
+
* @returns true in Chromium.
|
|
319
|
+
*/
|
|
320
|
+
export declare const isChromium: (page: Page) => boolean;
|
|
321
|
+
/** A location at one viewport, the item most passes visit. */
|
|
322
|
+
export interface PlaceItem {
|
|
323
|
+
readonly location: SweepLocation;
|
|
324
|
+
readonly viewport: FindingViewport;
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* How a budget finding names a location at a viewport.
|
|
328
|
+
* @param item the location and viewport.
|
|
329
|
+
* @returns its label.
|
|
330
|
+
*/
|
|
331
|
+
export declare const itemLabel: (item: PlaceItem) => string;
|
|
332
|
+
/**
|
|
333
|
+
* The locations a shard's items cover, each once.
|
|
334
|
+
* @param items the shard's items.
|
|
335
|
+
* @param locationOf the location an item visits.
|
|
336
|
+
* @returns the locations' names.
|
|
337
|
+
*/
|
|
338
|
+
export declare const shardLocations: <Item>(items: readonly ShardItem<Item>[], locationOf: (item: Item) => SweepLocation) => readonly string[];
|
|
339
|
+
/**
|
|
340
|
+
* The location of a place item.
|
|
341
|
+
* @param item the location and viewport.
|
|
342
|
+
* @returns the location.
|
|
343
|
+
*/
|
|
344
|
+
export declare const locationOfItem: (item: PlaceItem) => SweepLocation;
|
|
345
|
+
/** The rules a resting scan judges. */
|
|
346
|
+
export declare const RESTING_JUDGED: readonly string[];
|
|
347
|
+
/**
|
|
348
|
+
* One route per template and every story, for the passes that sample instead of covering all.
|
|
349
|
+
* @param discovery what discovery recorded.
|
|
350
|
+
* @returns the sampled locations.
|
|
351
|
+
*/
|
|
352
|
+
export declare const sampledLocations: (discovery: Discovery) => readonly SweepLocation[];
|
|
353
|
+
//# sourceMappingURL=sweep-shared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sweep-shared.d.ts","sourceRoot":"","sources":["../src/sweep-shared.ts"],"names":[],"mappings":"AAIA,OAAO,EAAU,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAQ,MAAM,kBAAkB,CAAA;AACzE,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EAEpB,KAAK,YAAY,EACjB,KAAK,eAAe,EAQpB,KAAK,UAAU,EAQf,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,SAAS,EAGd,KAAK,cAAc,EACnB,KAAK,aAAa,EACnB,MAAM,sBAAsB,CAAA;AAG7B,OAAO,EAAgD,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AAG3F,YAAY,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAIjD,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CACxB;AAED,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,QAAQ,EAAE,M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