Utilização

Compare a recorded native batch stream with its saved tree.

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);
});

Assinaturas

ts
(file: string, { fonts, screen }?: ReplayOptions): Promise<Replayed>

Parâmetros

NomeTipoObrigatórioDescrição
filestringSim—
__1ReplayOptionsNão—
Predefinição: {}

Devolve

Promise<Replayed>

Gerado a partir das declarações TypeScript públicas: assinaturas, props e predefinições vêm da fonte verificada, as descrições da sua JSDoc. Nenhuma predefinição é inventada.