search/
Start typing to search packages!
package_2
jest-jasmine2
By @eyycheev
Roblox
Mirroredjest-jasmine2
Upstream: https://github.com/facebook/jest/tree/v27.4.7/packages/jest-jasmine2
:pencil2: Notes
- Our upstream, Jest, doesn't include any test files for the files in this directory,
jest-jasmine2/src/jasmine/, so we look to the upstream that Jest is based off of Jasmine, for the test files - The tests for CallTracker and SpyStrategy are copied off of the upstream files but the
createSpy.tsfile doesn't actually have a direct upstream equivalent in Jasmine so we copy some tests fromSpySpecinstead, leaving out the majority of tests that aren't yet relevant - We expose
andAlsoin addition to the typicalandfor createSpy sinceandis a built in keyword for Lua so we can't cleanly chain fields (i.e. we can't getvar.andto work so we allow forvar.andAlso) - We use the Roblox Lua Promise library in this module in a number of places to more closely mirror the asynchronous tests in Jasmine
Package Details
Install command (Click to copy)
Version
3.14.0-rbx.2
License
MIT
Safe for commercial use
The package archive does not include its license text; the license is declared in its manifest metadata.
Automated license review — not legal advice.
