@flighthq/tool-capture 0.3.1-next.1091.b7aa6f2 → 0.3.1-next.1095.16f1704

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flighthq/tool-capture",
3
- "version": "0.3.1-next.1091.b7aa6f2",
3
+ "version": "0.3.1-next.1095.16f1704",
4
4
  "author": "Joshua Granick and other contributors",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -42,10 +42,10 @@
42
42
  "clean:dist": "tsx ../../scripts/clean-package-dist.ts"
43
43
  },
44
44
  "dependencies": {
45
- "@flighthq/capture": "0.3.1-next.1091.b7aa6f2",
46
- "@flighthq/render-wgpu": "0.3.1-next.1091.b7aa6f2",
47
- "@flighthq/bitmap": "0.3.1-next.1091.b7aa6f2",
48
- "@flighthq/types": "0.3.1-next.1091.b7aa6f2",
45
+ "@flighthq/capture": "0.3.1-next.1095.16f1704",
46
+ "@flighthq/render-wgpu": "0.3.1-next.1095.16f1704",
47
+ "@flighthq/bitmap": "0.3.1-next.1095.16f1704",
48
+ "@flighthq/types": "0.3.1-next.1095.16f1704",
49
49
  "@playwright/test": "^1.50.0",
50
50
  "picocolors": "^1.1.1"
51
51
  },
@@ -176,6 +176,56 @@ describe('diffCaptureBaselineCoverage', () => {
176
176
  });
177
177
  });
178
178
 
179
+ describe('diffCaptureBaselineCoverage · unobservable kinds', () => {
180
+ // ★ THE FIRING TEST FOR THE GATE THAT BLOCKED A MERGE. A `referenceImage` lives in a flight-oracles
181
+ // release, so no local run carries one. The write path already carried such pins forward; the DIFF path
182
+ // did not, and reported every pinned referenceImage as "pinned, no longer carried" — a coverage LOSS for
183
+ // a kind nothing was ever able to carry. Both paths must be told the same thing about what a run settled.
184
+ it('does not report a loss for a kind this run could not observe', () => {
185
+ const manifest = createCaptureBaselineCoverageManifest({
186
+ functional: { 'a/webgl': ['fingerprint', 'referenceImage'] },
187
+ });
188
+
189
+ const diff = diffCaptureBaselineCoverage(manifest, 'functional', { 'a/webgl': ['fingerprint'] }, ['a/webgl'], {
190
+ activeRenderers: null,
191
+ entryFiltered: false,
192
+ kinds: ['fingerprint', 'oracle', 'screenshot'],
193
+ });
194
+
195
+ expect(diff.lost).toEqual([]);
196
+ });
197
+
198
+ // The control: WITHOUT the scope, the same inputs do report the loss. That is what the gate looked like
199
+ // when it blocked the merge, and it proves `kinds` is the load-bearing part rather than decoration.
200
+ it('reports it as lost when the run does not declare which kinds it observed', () => {
201
+ const manifest = createCaptureBaselineCoverageManifest({
202
+ functional: { 'a/webgl': ['fingerprint', 'referenceImage'] },
203
+ });
204
+
205
+ const diff = diffCaptureBaselineCoverage(manifest, 'functional', { 'a/webgl': ['fingerprint'] }, ['a/webgl'], {
206
+ activeRenderers: null,
207
+ entryFiltered: false,
208
+ });
209
+
210
+ expect(diff.lost).toEqual(['a/webgl#referenceImage']);
211
+ });
212
+
213
+ // And an observable kind that really did vanish is still a loss, so narrowing the scope did not blunt it.
214
+ it('still reports a loss for a kind the run could observe', () => {
215
+ const manifest = createCaptureBaselineCoverageManifest({
216
+ functional: { 'a/webgl': ['fingerprint', 'screenshot'] },
217
+ });
218
+
219
+ const diff = diffCaptureBaselineCoverage(manifest, 'functional', { 'a/webgl': ['fingerprint'] }, ['a/webgl'], {
220
+ activeRenderers: null,
221
+ entryFiltered: false,
222
+ kinds: ['fingerprint', 'oracle', 'screenshot'],
223
+ });
224
+
225
+ expect(diff.lost).toEqual(['a/webgl#screenshot']);
226
+ });
227
+ });
228
+
179
229
  describe('evidence-kind scope', () => {
180
230
  const all = ['svg-image/webgl', 'svg-image/canvas', 'node-alpha/canvas'];
181
231