Skip to content

Latest commit

Β 

History

History
795 lines (400 loc) Β· 42.7 KB

CHANGELOG.md

File metadata and controls

795 lines (400 loc) Β· 42.7 KB

1.0.0-beta.81 (2022-01-09)

Features

  • dummy: accept conditional function to anyNumber dummy function (cf4e13f)

1.0.0-beta.80 (2022-01-07)

Features

  • dummy: add anyString to conditional function (0c5d17b)

1.0.0-beta.79 (2022-01-06)

Features

  • dummy: add anyBigInt function (8c50d41)
  • dummy: add anySymbol function (ea5d2b4)

1.0.0-beta.78 (2021-12-22)

Features

  • modifier: add lowerCase pre modifier (c26dce1)
  • modifier: add upperCase pre modifier (63008cb)

1.0.0-beta.77 (2021-12-21)

Bug Fixes

  • expect: remove debug types (c59d991)

Features

  • dummy: add anyFunction dummy object (4213261)
  • helper: add color to assertion message (0859d3a)

1.0.0-beta.76 (2021-12-21)

Features

  • expect: add reserveActualHint hooks for merge actual hint after match (f0749e3)
  • modifier: add boolean pre modifier (374dcd1)
  • modifier: set reserved actual hint (cc1bbe6), closes #60

1.0.0-beta.75 (2021-12-20)

Bug Fixes

  • expect: change context member and fix assertion message (599940f)
  • matcher: change MatchResult interface (1e6bac4)
  • modifier: rename stringify pre modifier to string (1d61e93)

Features

  • modifier: add number pre modifier (8ce5f1e)

1.0.0-beta.74 (2021-12-20)

Bug Fixes

  • expect: fix display assertion result (78f8de9)
  • expect: improve type infer of pre modifier return types (301d542)

Features

  • expect: be accept multiple pre modifier (2f3603d)
  • modifier: add stringify pre modifier (f135b57)

1.0.0-beta.73 (2021-12-19)

Features

  • expect: improve types for accept multiple pre modifiers (ff66bda), closes #55

1.0.0-beta.72 (2021-12-18)

Features

  • expect: support multiple post modifier with strict type definition (70c0866), closes #55

1.0.0-beta.71 (2021-12-17)

Bug Fixes

  • change types to accept PropertyKey (a170b17)
  • expect: fix matcher actual result value (3a6567b)
  • mock: change display name (ca07221)

Features

  • modifier: add debug post modifier (fbcada6)

1.0.0-beta.70 (2021-12-16)

Bug Fixes

  • expect: change type infer when pre modifier used (bd2fd5d)
  • modifier: change pre modifier interface (1af4a90)

Features

  • modifier: add trim pre modifier (e6f2391)

1.0.0-beta.69 (2021-12-16)

Bug Fixes

  • expect: return promise when modifier return promise, not actual value is promise (7dd20c7)

Features

  • expect: add extendExpect function (ed2ecc7)
  • expect: add getDefinition method, split expect return types (d50f0ff)

1.0.0-beta.68 (2021-12-15)

Bug Fixes

  • expect: improve generic expected types, restrict pre modifier interface (c8ebebe)

1.0.0-beta.67 (2021-12-15)

Features

  • matcher: add toBeError matcher (8f2016a)

1.0.0-beta.66 (2021-12-14)

Features

  • fake timer: add useFakeTimer function and implement fake timer object (173b5f3)
  • mock: add isMockObject that check if mock object or not (87c2ea4)

1.0.0-beta.65 (2021-12-14)

Features

  • mock: add mockClear mock object method (fb1333c)
  • mock: add reset mock object method (b696bbd)

1.0.0-beta.64 (2021-12-13)

Features

  • mock: add defaultRejectedValue mock object method (5222755)
  • mock: add onceRejectedValue mock object method (0cd6fe6)
  • mock: add onceResolvedValue to mock object method (5b639fd)

1.0.0-beta.63 (2021-12-13)

Bug Fixes

  • mock: rename setImplementation to defaultImplementation (d3a70ed)

Features

  • mock: add defaultResolvedValue mock object method (1f4e13c)
  • mock: add defaultReturnValue to mock object (52f6336)
  • mock: add onceImplementation function to mock object (bada13e)
  • mock: add onceReturnValue mock method (53c1e9f)
  • mock: add setImplementation method to mock object (e93b4f1)

1.0.0-beta.62 (2021-12-13)

Bug Fixes

  • mock: mock object return value, change interface (048ba13)

1.0.0-beta.61 (2021-12-12)

Features

  • matcher: add toMatchObject matcher (ae2a7f1)

1.0.0-beta.60 (2021-12-12)

Bug Fixes

  • expect: skip stack trace by captureStackTrace (48e9dd0)

1.0.0-beta.59 (2021-12-12)

Bug Fixes

  • remove unused deps for reduce bundle size (8269b08)
  • test: not export test.each function for avoid type error (14eb0b1)

Features

  • test: rename setup to setupMap, accept multiple setup (4eed7ba)

1.0.0-beta.58 (2021-12-11)

Bug Fixes

  • matcher: fix typo for assertion hint (1e53cdf)

Features

  • matcher: add toHaveBeenCalledAfter matcher (cfbb1e5)
  • matcher: add toHaveBeenCalledOnce matcher (21ecb8e)

1.0.0-beta.57 (2021-12-11)

Bug Fixes

  • mock: use incremental number instead of timestamp (6731f1e)

Features

  • matcher: add toHaveBeenCalledBefore matcher (80b129e)
  • mock: mock record each invacation timestamp (c33e15c), closes #48

1.0.0-beta.56 (2021-12-11)

Bug Fixes

  • matcher: improve assertion message for toBeCloseTo (53ff2b6), closes #46
  • matcher: improve assertion message for toHaveReturned (0f38afc), closes #46
  • matcher: improve assertion message for toHaveReturnedTimes (dde2ce4), closes #46
  • matcher: improve assertion message for toHaveReturnedWith (0c5b347), closes #46

1.0.0-beta.55 (2021-12-10)

Bug Fixes

  • matcher: improve toHaveProperty matcher assertion message (999e4a3)

Features

  • matcher: accept value 3rd argument toHaveProperty (6893e2d)

1.0.0-beta.54 (2021-12-09)

Bug Fixes

  • expect: fix display value of actual (bbb4e8a)

Features

  • expect: improve matcher filter for resolves and rejects modifier (44626bd)

1.0.0-beta.53 (2021-12-09)

Bug Fixes

  • mock: export defineGlobalThis globally (b0933c5)
  • test: change localThis types (e9d9dbf)

1.0.0-beta.52 (2021-12-07)

Features

  • test: change interface of jest style test what accept 3rd args of options (ca97069)

1.0.0-beta.51 (2021-12-07)

Bug Fixes

  • mock: define mock object interface and change deps types (a5844f3)

Features

  • mock: add spyOn function (6f5b675)

1.0.0-beta.50 (2021-12-06)

Features

  • dummy: rename fake to dummy object (1c6d65c)

1.0.0-beta.49 (2021-12-06)

Bug Fixes

  • test: fix pass args of sprintf (5f81f78)

1.0.0-beta.48 (2021-12-04)

Features

  • fake: add anyArray fake object (5cc49ef)

1.0.0-beta.47 (2021-12-03)

Bug Fixes

  • helper: to be objective equivalence of fake object (7f4b91c)
  • not export utility at mod (e7b339c)

Features

  • fake: add anyBoolean fake object (009a40c)
  • fake: add anyOf fake object (efd2221)

1.0.0-beta.46 (2021-12-03)

Features

  • helper: add original equal funciton what predicate original mock (41a98ba)

1.0.0-beta.45 (2021-12-02)

Features

  • expect: add stringContaining function (d7d5849)
  • expect: add stringMatching function (c38aac1)

1.0.0-beta.44 (2021-12-01)

Features

  • expect: add anyNumber function (eab1e1f)
  • expect: add anyString function (546ab60)
  • expect: add objectContaining function (d2e6524)

1.0.0-beta.43 (2021-12-01)

Features

  • expect: add any function (da9bcae)
  • expect: add arrayContaining function (5de93b8)

1.0.0-beta.42 (2021-11-30)

Features

  • expect: add anything function (d9b495b)
  • matcher: use custom equal function (7a282c9)
  • report: add line number reporter for assertion (eb9f47b)

1.0.0-beta.41 (2021-11-29)

Bug Fixes

  • test: handle async test (04e9e59)

1.0.0-beta.40 (2021-11-29)

Bug Fixes

  • describe: do not export describe module (f2ce485)

1.0.0-beta.39 (2021-11-29)

Features

  • test: accept jest style interface (e185b5f)

1.0.0-beta.38 (2021-11-29)

Features

  • test: add test function instead of it (81b3d55)
  • test: add test function what register test case (05fa94e)

1.0.0-beta.37 (2021-11-28)

Features

  • describe: add describe runner (e9f6a45)
  • describe: add hooks for before and after test (392c152)
  • matcher: add toContainEqual matcher (8adecc6)

1.0.0-beta.36 (2021-11-28)

Bug Fixes

  • add readonly signature to array types (dee5c1f)
  • matcher: change toContain matcher types waht accept all iterable types (a9e7eaa)

1.0.0-beta.35 (2021-11-27)

Features

  • matcher: add toBeEmpty matcher (c5e2f18)
  • matcher: add toIncludeAnyMembers matcher (3aaf913)
  • matcher: add toIncludeSameMembers matcher (310c20a)

1.0.0-beta.34 (2021-11-27)

Bug Fixes

  • matcher: change toContainAnyEntries types (45f8deb)

Features

  • matcher: add toContainAnyEntries matcher (8005015)
  • matcher: add toContainAnyValues matcher (a91338f)
  • matcher: add toContainEntries matcher (beb20b2)
  • matcher: add toContainEntry matcher (e43e419)
  • matcher: add toContainValues matcher (e1daab6)

1.0.0-beta.33 (2021-11-27)

Features

  • expect: display matcher defined actual value when assert error (59e887a)
  • matcher: add toContainAnyKeys matcher (719cb82)
  • matcher: add toContainValue matcher (5eb17e6)
  • matcher: add toIncludeAllMembers matcher (730c5e2)

1.0.0-beta.32 (2021-11-26)

Features

  • matcher: add toBeHexColor matcher (33f1a05)
  • matcher: add toEqualCaseInsensitive matcher (7e43f70)
  • matcher: add toEqualIgnoringWhitespace matcher (5d37bfd)
  • matcher: add toIncludeMultiple matcher (e228215)
  • matcher: add toIncludeRepeated matcher (e6cf728)

1.0.0-beta.31 (2021-11-26)

Features

  • matcher: add toBeDateString matcher (2704e26)
  • matcher: add toEndWith matcher (0ea209f)
  • matcher: add toInclude matcher (4e543a8)

1.0.0-beta.30 (2021-11-26)

Bug Fixes

  • modifier: change display expected hint and color to blue (75bd82b)

Features

  • expect: merge expectedHint and actualHint with match result (380a6e8)

1.0.0-beta.29 (2021-11-25)

Features

  • expect: add overwrite expect and actual hint when error (fe0954d)
  • matcher: add toStartWith matcher (f8014fb)

1.0.0-beta.28 (2021-11-25)

Bug Fixes

Features

  • matcher: add toContainKeys matcher (4ec8855)
  • matcher: change matcher return value interface (fce278f)

1.0.0-beta.27 (2021-11-25)

Features

  • matcher: add toHaveProperty matcher (2340b9a)

1.0.0-beta.26 (2021-11-24)

Features

  • it: add each function (7239b55)
  • matcher: add toSatisfyAll matcher (017a3b6)
  • matcher: add toSatisfyAll matcher (59e2b1d)

1.0.0-beta.25 (2021-11-24)

Features

  • matcher: add toBeExtensible matcher (9cbe6e3)
  • matcher: add toBeFrozen matcher (0032aea)
  • matcher: add toBeSealed matcher (3bdbcbe)

1.0.0-beta.24 (2021-11-24)

Bug Fixes

  • expect: fix return types to promise when expect value is promise (3f2216b)

1.0.0-beta.23 (2021-11-23)

Bug Fixes

  • it: fix it accept types (cb0b79e)

Features

  • helper: use Deno.inspect safely at stringify (edb1f18)

1.0.0-beta.22 (2021-11-23)

Features

  • modifier: change modifier interface to flatten and have type (e240af8), closes #6

1.0.0-beta.21 (2021-11-22)

Features

  • compat: add Deno.test compat as it function (21a9caa)

1.0.0-beta.20 (2021-11-22)

Features

  • matcher: add toSatisfy matcher (f3269b4)
  • matcher: change matcher return interface (ce5fd57)
  • modifier: add not modifier (32c4496), closes #6
  • modifier: add resolves and rejects modifiers (147bdb9)

Performance Improvements

  • expect: remove deplicated code (4447869), closes #6

1.0.0-beta.19 (2021-11-21)

Bug Fixes

  • do not re-export for not supported bundler (15e970d)

1.0.0-beta.18 (2021-11-21)

Bug Fixes

  • not use import map, switch to relative path (e135caa), closes #5

1.0.0-beta.17 (2021-11-21)

Bug Fixes

  • matcher: use universal stringify function (0a105fc)

Features

1.0.0-beta.16 (2021-11-21)

Features

  • matcher: add toBeEmptyObject matcher (2a6870a)
  • matcher: add toBeObject matcher (8c965b3)

1.0.0-beta.15 (2021-11-20)

Bug Fixes

  • matcher: toBeNegative accept number only and fix logic (a4e3df0)

Features

  • matcher: add toBeEven matcher (a6d80d6)
  • matcher: add toBeFinite matcher (7a94ee8)
  • matcher: add toBeInteger matcher (583d2d3)
  • matcher: add toBeNegative matcher (14cdb32)
  • matcher: add toBeOdd matcher (1ff6b23)
  • matcher: add toBePositive matcher (ca3bec6)
  • matcher: add toBeWithin matcher (46da609)

1.0.0-beta.14 (2021-11-20)

Features

  • matcher: add toBeAfterOrEqualTo matcher (b8c90b5)
  • matcher: add toBeBefore matcher (c7c8002)
  • matcher: add toBeBeforeOrEqualTo matcher (10b36a2)
  • matcher: add toBeBetween matcher (e0c4949)
  • matcher: add toBeOneOf matcher (94ee680)

1.0.0-beta.13 (2021-11-20)

Bug Fixes

  • expect: wrap expect on function for tree-shaking (ba51f65)

Features

  • matcher: add toBeAfter matcher (0f15283)
  • matcher: add toBeDate matcher (f321728)
  • matcher: add toBeFunction matcher (481b7bd)
  • matcher: add toBeSymbol matcher (8530c41)
  • matcher: add toBeValidDate matcher (ac6584f)
  • matcher: improve assertion error message (40c8e13), closes #3

1.0.0-beta.12 (2021-11-20)

Features

  • matcher: add toBeArray matcher (9b52eb2)
  • matcher: add toBeBoolean matcher (85234d3)
  • matcher: add toBeFalse matcher (3c1f4ed)
  • matcher: add toBeNumber matcher (8eb85aa)
  • matcher: add toBeString matcher (a401afa)
  • matcher: add toBeTrue matcher (4287ca3)

1.0.0-beta.11 (2021-11-19)

Features

  • matcher: add toBeAnything matcher (38afded)
  • matcher: add toBeNil matcher (2374c7e)

1.0.0-beta.10 (2021-11-19)

Features

  • matcher: add toHaveLastReturnedWith matcher (56aeb08)
  • matcher: add toHaveNthReturnedWith matcher (13606e7)
  • matcher: add toHaveReturned matcher (9c051ef)
  • matcher: add toHaveReturnedTimes matcher (6281f93)
  • matcher: add toHaveReturnedWith matcher (bade2ae)
  • mock: save returned value to mock (f86e15e)

1.0.0-beta.9 (2021-11-19)

Features

  • matcher: add toHaveBeenCalledTimes matcher (89232fb)
  • matcher: add toHaveBeenCalledWith matcher (c10b04d)
  • matcher: add toHaveBeenLastCalledWith matcher (e6c8fcd)
  • matcher: add toHaveBeenNthCalledWith matcher (b1260fc)

1.0.0-beta.8 (2021-11-19)

Features

  • matcher: add toBeCloseTo matcher (dc66577)
  • matcher: add toHaveBeenCalled matcher (2668260)
  • mock: add fn function what make mock (9b315f1)

1.0.0-beta.7 (2021-11-19)

Features

  • expect: add .rejects helper (9f9424e)

1.0.0-beta.6 (2021-11-19)

Features

  • expect: add .resolve helper (5d9027d)

1.0.0-beta.5 (2021-11-19)

Bug Fixes

  • matcher: change to_contain matcher logic to includes (b260b4b)

Features

  • matcher: add toContain matcher (294c543)
  • matcher: add toThrow matcher (a0f8432)

1.0.0-beta.4 (2021-11-18)

Bug Fixes

  • matcher: assign a specific type to actual (142acc6)

Features

  • expect: add filtering matcher by generic types (86026d7)
  • matcher: add toMatch matcher (7fd531c)

1.0.0-beta.3 (2021-11-18)

Features

  • matcher: add toBeGreaterThan matcher (2fb4d3e)
  • matcher: add toBeGreaterThanOrEqual matcher (8afdcc8)
  • matcher: add toBeLessThan matcher (5ce628b)
  • matcher: add toBeLessThanOrEqual matcher (0636932)

1.0.0-beta.2 (2021-11-18)

Features

  • matcher: add toBeDefined matcher (52ac1b3)
  • matcher: add toBeFalsy matcher (c946e40)
  • matcher: add toBeInstanceOf matcher (af9c8b6)
  • matcher: add toBeNaN matcher (10da18a)
  • matcher: add toBeNull matcher (7fe9bdf)
  • matcher: add toBeTruthy matcher (06b7d55)
  • matcher: add toBeUndefined matcher (d01e927)
  • matcher: add toEqual matcher (da43373)
  • matcher: add toHaveLength matcher (b56d6d6)

1.0.0-beta.1 (2021-11-18)

Features