DanielduelD
Deno2y ago
2 replies
Danielduel

Deno.test with "each" support

I tried to find in docs if something like
https://deno.land/x/test_each@v0.0.2
or jest's https://jestjs.io/docs/api#each
exists in Deno.test
Looks like it is not, if you know that I missed something or there's a common pattern of doing this in Deno.test (like idk... mapping an array into an array of asserts and somehow getting the correct message out - please steer me into the correct direction.
In your test files, Jest puts each of these methods and objects into the global environment. You don't have to require or import anything to use them. However, if you prefer explicit imports, you can do import {describe, expect, test} from '@jest/globals'.
Globals · Jest
Was this page helpful?