Jest Expect-compatible API, but much faster
If you are using Jest globals, you don't have to import this manually.
Just run @exodus/test with --jest flag and use global expect.
@exodus/test
--jest
expect
See Jest Expect documentation.
If you want to import it directly:
import { expect } from '@exodus/test/expect' Copy
import { expect } from '@exodus/test/expect'
This short-cuts most common cases and tries to avoid loading expect altogether, but for everything that can't be bypassed (e.g. test failures) it uses real expect.
Everything including output formatting matches Jest expect.
Jest Expect-compatible API, but much faster
If you are using Jest globals, you don't have to import this manually.
Just run
@exodus/testwith--jestflag and use globalexpect.See Jest Expect documentation.
If you want to import it directly:
This short-cuts most common cases and tries to avoid loading
expectaltogether, but for everything that can't be bypassed (e.g. test failures) it uses realexpect.Everything including output formatting matches Jest
expect.