Skip to content

The open alternative to Salesforce, designed for AI.

207 B
Raw Blame
type AssertIsDefined = <T>(value: T) => asserts value is NonNullable<T>;

export const jestExpectToBeDefined: AssertIsDefined = (value) => {
  expect(value).toBeDefined();
  expect(value).not.toBeNull();
};