Jest-compatible API, but much faster, ESM friendly, and based on node:test
node:test
You likely don't have to import this manually.
Just run @exodus/test with --jest flag.
@exodus/test
--jest
See Jest API documentation.
If you want to run Jest test files with just node (or without --jest flag), do e.g.:
node
import { describe, test, expect, jest } from '@exodus/test/jest'import { beforeEach, afterEach, beforeAll, afterAll } from '@exodus/test/jest' Copy
import { describe, test, expect, jest } from '@exodus/test/jest'import { beforeEach, afterEach, beforeAll, afterAll } from '@exodus/test/jest'
Jest-compatible API, but much faster, ESM friendly, and based on
node:testYou likely don't have to import this manually.
Just run
@exodus/testwith--jestflag.See Jest API documentation.
If you want to run Jest test files with just
node(or without--jestflag), do e.g.: