// Basic inequality
TestValidator.notEquals("user should be different after update", originalUser, updatedUser);
// Ignore timestamps in comparison
TestValidator.notEquals("user data should differ", originalUser, modifiedUser,
(key) => key === "updatedAt"
);
// Validate state changes
TestValidator.notEquals("state should have changed", initialState, currentState);
// Type-safe nullable comparisons
const mutableData: { count: number } | null = getMutableData();
TestValidator.notEquals("should have changed", mutableData, null);
Validates deep inequality between two values using JSON comparison.
Performs recursive comparison of objects and arrays to ensure they are NOT equal. Supports an optional exception filter to ignore specific keys during comparison. Useful for validating that data has changed, objects are different, or mutations have occurred.