readFromTheStart

tcmts.registry.test.readFromTheStart · #m74g3uhp · term · runs on the server

uses tcmts.registry.cursors, which uses tcmts.server.table, which uses tcmts.server.Table, which uses #tcm/host (database)

Forget where Jetstream was read to: tables are shared by a test run's tests, and each test has its own network.

import { cursors } from "#codebase/tcmts/registry";

export async function readFromTheStart(): Promise<void> {
  for (const c of await cursors.find()) await cursors.delete(c.id);
}

uses

used by