🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
import { describe, expect, it } from "vitest";
import { isNullOrUndefined } from "./isNullOrUndefined";
describe("isNullOrUndefined", () => {
it.each([null, undefined])("matches %s", (value) => {
expect(isNullOrUndefined(value)).toBe(true);
});
it.each([0, false, "", NaN, [], {}])(
"preserves non-nullish values: %s",
(value) => {
expect(isNullOrUndefined(value)).toBe(false);
},
);
});