3.13.2-ts.3 • Published 5 months ago
@rbxts-js/jest-jasmine2 v3.13.2-ts.3
jest-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