3.13.2-ts.3 • Published 5 months ago

@rbxts-js/jest-jasmine2 v3.13.2-ts.3

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

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.ts file doesn't actually have a direct upstream equivalent in Jasmine so we copy some tests from SpySpec instead, leaving out the majority of tests that aren't yet relevant
  • We expose andAlso in addition to the typical and for createSpy since and is a built in keyword for Lua so we can't cleanly chain fields (i.e. we can't get var.and to work so we allow for var.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
3.13.2-ts.3

5 months ago

3.13.2-ts.2

5 months ago

3.13.2-ts.1

5 months ago