Asserts that a condition is true. Throws an exception if it's not.
When using Vite, this function generates no code when building a production bundle.
assert(2 === 2);expect(() => assert(2 === 3)).toThrowError(); Copy
assert(2 === 2);expect(() => assert(2 === 3)).toThrowError();
Asserts that a condition is true. Throws an exception if it's not.
When using Vite, this function generates no code when building a production bundle.