The expectation will render your code null and void!
This comparison looks specifically for a null value.
expect<Vec3 | null>(null).toBeNull(); // valid assertion
In the case of numeric values, numbers cannot be null in AssemblyScript, thus, if this method is called with anything other than a reference type, this will result in a compile time error.
This method is safe to use with jest portably.
Last modified 2yr ago
Copy link