Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

265 B
Raw Blame
import { expect } from "vitest";

export const expectToBeDefined = <T>(value: T) => {
  if (value === undefined) {
    expect(value).toBeDefined();
  }
  if (value === null) {
    expect(value).not.toBeNull();
  }
  return value as Exclude<T, undefined | null>;
};