Verwendung

Compare a recorded native batch stream with its saved tree.

Dieser Typ wird verwendet von tests.replay

tsx
// Compare a recorded native batch stream with its saved tree.
import { assert, replay, test } from 'kuito/tests';

test('recorded checkout keeps its native tree', async () => {
  // Supply a .krec recording and its adjacent .tree file from your app.
  const result = await replay('tests/fixtures/checkout.krec');
  assert.notEqual(result.recorded, null);
  assert.equal(result.tree, result.recorded);
});

Typdeklaration

ts
export interface Replayed {
  /** The tree the replay left, one line per view as a shell describes it. */
  tree: string;
  /** The tree the device left, saved beside the recording as `<file>.tree`; null without one. */
  recorded: string | null;
}

Mitglieder 2

NameTypErforderlichBeschreibung
treestringJaThe tree the replay left, one line per view as a shell describes it.
recordedstringJaThe tree the device left, saved beside the recording as <file>.tree; null without one.
Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.