skipcheck

TM1 Testcontainers · Docs · Writing tests

RequiresTm1Web

import { RequiresTm1Web } from "@skipcheck/tm1-testcontainers";

Runs a test class or method against real TM1 Web and TM1 servers, and skips it when either isn't available.

It includes RequiresTm1, so tests also skip without Docker or a Tm1Source, and can still take a Tm1ServerContainer parameter. Declare a Tm1WebContainer parameter to get the shared TM1 Web, which lists and logs on to the shared TM1 server:

requiresTm1Web("opens a websheet", ({ tm1Web }) => {
  // http://localhost:54321/tm1web/, which lists the shared TM1 server
  expect(tm1Web.getUrl()).toMatch(/\/tm1web\/$/);
  // ...
});

Members

NO_SOURCE_MESSAGE staticWhy tests skip when no TM1 Web source is configured, and what to set.
skipReason static

NO_SOURCE_MESSAGE

static
NO_SOURCE_MESSAGE

Why tests skip when no TM1 Web source is configured, and what to set.

skipReason

static
static skipReason(): Promise<string | undefined>