MCPcopy Create free account
hub / github.com/ckeditor/ckeditor5-react / expectToBeTruthy

Function expectToBeTruthy

tests/_utils/expectToBeTruthy.ts:8–12  ·  view source on GitHub ↗
(
	value: T | undefined | null
)

Source from the content-addressed store, hash-verified

6import { expect } from 'vitest';
7
8export function expectToBeTruthy<T>(
9 value: T | undefined | null
10): asserts value is T {
11 expect( value ).to.be.toBeTruthy();
12}

Callers 1

ckeditor.test.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…