Harness uses Vitest's expect function for making assertions in your tests. The API is 100% compatible with Vitest's expect functionality.
Use expect.soft to continue test execution even when assertions fail:
Harness provides the complete Vitest expect API including:
toBe, toEqual, toStrictEqualtoBeTruthy, toBeFalsy, toBeNull, toBeUndefined, toBeDefinedtoBeGreaterThan, toBeLessThan, toBeCloseTotoMatch, toContain, toHaveLengthtoContain, toHaveProperty, toMatchObjecttoThrow, toThrowErrortoBeInstanceOf, toBeTypeOfexpect.anything(), expect.any(), expect.arrayContaining(), etc.For the complete documentation of all available matchers and advanced features, please refer to the Vitest expect documentation.