{"id":"eyycheev/jest-each","name":"jest-each","scope":"eyycheev","platform":"roblox","description":"Mirrored from the Wally registry.","version":"3.14.0-rbx.2","latest":"3.14.0-rbx.2","versions":["3.14.0-rbx.0","3.14.0-rbx.1","3.14.0-rbx.2"],"license":"MIT","licenseRating":"safe","licenseCaveats":["The package archive does not include its license text; the license is declared in its manifest metadata."],"licenseVerified":false,"dependencies":{"eyycheev/chalk-lua":{"version":"^3.14.0-rbx.2","alias":"ChalkLua"},"eyycheev/jest-get-type":{"version":"^3.14.0-rbx.2","alias":"JestGetType"},"eyycheev/jest-types":{"version":"^3.14.0-rbx.2","alias":"JestTypes"},"eyycheev/jest-util":{"version":"^3.14.0-rbx.2","alias":"JestUtil"},"jsdotlua/luau-polyfill":{"version":"^1.2.7","alias":"LuauPolyfill"},"eyycheev/pretty-format":{"version":"^3.14.0-rbx.2","alias":"PrettyFormat"},"jsdotlua/luau-regexp":{"version":"^0.2.1","alias":"RegExp"}},"integrity":"49ee6fc873601c56e6a16b1d97ca872caf33c7e9a686ba64d6bbcfcbb1fdac02","likes":0,"downloads":0,"install":"forest install eyycheev/jest-each","url":"https://forest.dev/p/roblox/eyycheev/jest-each","files":"https://api.forest.dev/ai/package/roblox/eyycheev/jest-each/files","readme":"# jest-each\n\nUpstream: https://github.com/facebook/jest/tree/v27.4.7/packages/jest-each\n\nA parameterized testing library for Jest. You can find its documentation in the [Jest documentation](https://roblox.github.io/jest-roblox-internal).\n\n---\n\n### :pencil2: Notes\n* Deviations:\n    * Tagged templates are not available in Lua. As an alternative, a headings string must be used with a list of arrays containing the same amount of items as headings.\n    Example:\n    ```lua\n    each(\"a | b | expected\",\n        { 0, 0, 0 },\n        { 0, 1, 1 },\n        { 1, 1, 2 }\n    ).it(\"returns $expected when given $a and $b\",\n        function(ref)\n            local a: number, b: number, expected = ref.a, ref.b, ref.expected\n            jestExpect(a + b).toBe(expected)\n        end\n    )\n    ```\n    * Use `NIL` provided constant instead of nil when passing values to each\n    ```lua\n    each(\"expected\", { NIL }).it(\n\t\t\"templates properly convert $expected to nil before running the tests\",\n\t\tfunction(ref)\n\t\t\tjestExpect(ref.expected).toBe(nil)\n\t\tend\n\t)\n    ```\n    * TestEZ methods are supported (`*FOCUS`, `*SKIP`), however, these may be dropped at some point in favor of jest's callable objects(`it`, `it.only`, `it.skip`), which are supported too\n","readmeTruncated":false}