# Function createTestRuntime

- createTestRuntime(
  registryPath: string,
  driverFactory: (
  registry: Registry<any>,
  ) => Promise<
  {
  cleanup?: () => Promise<void>;
  driver: {
  actor: ActorDriverBuilder;
  manager: ManagerDriverBuilder;
  name: string;
  };
  rivetEngine?: {
  endpoint: string;
  namespace: string;
  runnerName: string;
  token: string;
  };
  },
  >,
  ): Promise<DriverDeployOutput>

  Helper function to adapt the drivers to the Node.js runtime for tests.

  This is helpful for drivers that run in-process as opposed to drivers that rely on external tools.

  #### Parameters

  - registryPath: string
  - driverFactory: (
    registry: Registry<any>,
    ) => Promise<
    {
    cleanup?: () => Promise<void>;
    driver: {
    actor: ActorDriverBuilder;
    manager: ManagerDriverBuilder;
    name: string;
    };
    rivetEngine?: {
    endpoint: string;
    namespace: string;
    runnerName: string;
    token: string;
    };
    },
    >

  #### Returns Promise<DriverDeployOutput>

  - Defined in rivetkit-typescript/packages/rivetkit/src/driver-test-suite/mod.ts:149