Tests if two types are exactly the same shape.
Demands the parameter evaluate to true.
Demands the parameter evaluate to false. Inverse of Expect.
Tests if a type is a valid array.
Tests if a given type would satisfy a given supertype.
Tests if the provided arguments resolve to equivalent TypeScript values.
Utility types for unit testing TypeScript types.
Types derived from and inspired by MichiganTypeScript/type-testing (GitHub) and Testing Types in TypeScript by Adam Rackis.
Since
0.1.0
Example
Your type tests should probably be in the same place as your Javascript tests (and not where those objects are defined). (So replace this with your imported item(s) to test.)
These values should also be tested by Jest/etc. for their values, but this example is just looking at type testing.
If any of these tests fail, the Expect type will cause an error.