Skip to content

Releases: drashland/rhum

v2.2.0

30 Jan 00:21
5f20739
Compare
Choose a tag to compare

Compatibility

  • Requires Deno v1.30.0
  • Requires Node v14, v16, or v18

Documentation

Usage

  1. Create a deps.ts file.
// deps.ts

export {
  Dummy,
  Fake,
  Mock,
  Spy,
  Stub
} from "https://deno.land/x/rhum@v2.2.0/mod.ts";
  1. Import the test doubles from your deps.ts file.
import {
  Dummy,
  Fake,
  Mock,
  Spy,
  Stub
} from "./deps.ts"

... your
... code
... here

Release Summary

v2.1.0

23 Dec 22:08
Compare
Choose a tag to compare

Important Notes From the Authors

This release has the same changes as v2.1.0-rc.1.

The differences are:

- Node 17 is removed from the Compatibility section. It should not have been
  added in the first place... my bad (crookse).
- This release was tested using Deno v1.29.1, so that is listed in the
  Compatibility section.
- The -rc.1 tag is removed. Basically, we are saying v2.1.0-rc.1 is stable.
  Also, v2.1.0-rc.1 should have used a different tag instead of -rc.1 In the
  future, -rc.x tags will only apply to major versions.

Compatibility

  • Requires Deno v1.29.1
  • Requires Node v14, v16, or v18

Documentation

Usage

  1. Create a deps.ts file.
// deps.ts

export {
  Dummy,
  Fake,
  Mock,
  Spy,
  Stub
} from "https://deno.land/x/rhum@v2.1.0/mod.ts";
  1. Import the test doubles from your deps.ts file.
import {
  Dummy,
  Fake,
  Mock,
  Spy,
  Stub
} from "./deps.ts"

... your
... code
... here

Release Summary

v2.1.0-rc.1

22 Sep 02:38
bfb25d9
Compare
Choose a tag to compare

Compatibility

  • Requires Deno v1.25.3
  • Requires Node v14, v16, v17, or v18

Documentation

Usage

  1. Create a deps.ts file.
// deps.ts

export {
  Dummy,
  Fake,
  Mock,
  Spy,
  Stub
} from "https://deno.land/x/rhum@v2.1.0-rc.1/mod.ts";
  1. Import the test doubles from your deps.ts file.
import {
  Dummy,
  Fake,
  Mock,
  Spy,
  Stub
} from "./deps.ts"

... your
... code
... here

Release Summary

  • feat: spies (#162)
  • fix: issue with test double being constructed without constructor args (#165)
  • chore: DRY code; separate logic into files where needed; add comments (#163)
  • ci: pre-check release version when releasing to node ecosystem (#169)
  • ci: update release drafter to reflect v2; use drash template (#160)

v2.0.0

16 Apr 20:49
a5795f6
Compare
Choose a tag to compare

Compatibility

  • Requires Deno v1.20 or higher

Documentation

Usage

  1. Create a deps.ts file.
// deps.ts

export { Dummy, Fake, Mock, Stub } from "https://deno.land/x/rhum@v2.0.0/mod.ts";
  1. Import the test doubles from your deps.ts file.
import { Dummy, Fake, Mock, Stub } from "./deps.ts"

... your
... code
... here

Release Summary

View the associated article for this release here.

  • BREAKING: remove test runner (Rhum.testPlan, Rhum.testSuite, Rhum.testCase, and hooks)
  • BREAKING: stub API (no need to stub a class to stub its members)
  • feat: add Fake()
  • feat: add Dummy()
  • feat: Add new methods to Mock()
    • expects(...).toBeCalled(...)
    • method(...).willReturn(...)
    • method(...).wilThrow(...)
    • verifyExpectations()
  • feat: pre-programmed method implementation for faking/mocking methods
    • this is used to help fakes take shortcuts
    • this is used to help mocks pre-program methods
  • feat: add interfaces so that they can be returned for improved type hinting
  • feat: build for cjs and es2015
  • refactor: mocks to use mixin (mocks are now extensions of the class they are mocking)
  • refactor: types are now stricter and provide better type hinting
  • test: move integration test files into unit tests
  • test: test fakes, dummies, mocks, and stubs

v2.0.0-alpha-3

16 Apr 20:26
a5795f6
Compare
Choose a tag to compare
v2.0.0-alpha-3 Pre-release
Pre-release

Test release for deno.land/x and npm. Checking issue with missing README.

v2.0.0-alpha-2

16 Apr 20:20
Compare
Choose a tag to compare
v2.0.0-alpha-2 Pre-release
Pre-release

Test release for deno.land/x and npm. Fixing incorrect versioning.

v2.0.0-alpha-1

16 Apr 20:06
17fb6ea
Compare
Choose a tag to compare
v2.0.0-alpha-1 Pre-release
Pre-release

Test release for deno.land/x and npm.

v1.1.15

16 Apr 10:11
7bef0cb
Compare
Choose a tag to compare

Compatibility

  • Requires Deno v1.20 or higher
  • Uses Deno std@0.135.0

Importing

  • Import this latest release by using the following in your project(s):
    import { Rhum } from "https://deno.land/x/rhum@v1.1.15/mod.ts";

Updates

  • fix: Mocking a class with getters doesn't set default initialised value (#148)
  • chore: Update deps (use Deno std@0.135.0)

v1.1.14

01 Apr 19:00
c0ee522
Compare
Choose a tag to compare

Compatibility

  • Requires Deno v1.19 or higher
  • Uses Deno std@0.132.0

Importing

  • Import this latest release by using the following in your project(s):
    import { Rhum } from "https://deno.land/x/rhum@v1.1.14/mod.ts";

Updates

  • chore: Update dependencies and bump version numbers across repo (#142)
  • fix: Unable to mock getters and setters

v1.1.13

23 Feb 02:58
77a05f8
Compare
Choose a tag to compare

Compatibility

  • Requires Deno v1.19.0 or higher
  • Uses Deno std@0.126.0

Importing

  • Import this latest release by using the following in your project(s):
    import { Rhum } from "https://deno.land/x/rhum@v1.1.13/mod.ts";

Updates

  • fix: nested calls in mock not being tracked (#137)
  • chore: support latest deno and deno std (#135)