Cell API
    Preparing search index...

    Function createTestApp

    • The application of the project in the test process (docs/design/agent-first.md R11): cell.config.ts, toolchain modules and the preset's entry apply as for cell dev, in the test mode, without a port. Requests go through app.fetch(path, init), which returns a standard Response.

      import { createTestApp } from '@celljs/cli';

      const app = await createTestApp();
      expect(await (await app.fetch('/users')).json()).toEqual([]);
      await app.close();

      Parameters

      Returns Promise<BaseTestApp>