Releases: drashland/rhum
Releases · drashland/rhum
v2.2.0
Compatibility
- Requires Deno v1.30.0
- Requires Node v14, v16, or v18
Documentation
Usage
- Create a
deps.ts
file.
// deps.ts
export {
Dummy,
Fake,
Mock,
Spy,
Stub
} from "https://deno.land/x/[email protected]/mod.ts";
- Import the test doubles from your
deps.ts
file.
import {
Dummy,
Fake,
Mock,
Spy,
Stub
} from "./deps.ts"
... your
... code
... here
Release Summary
- feat(fake/mock): allow pre-programming methods with callbacks (#172)
v2.1.0
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
- Create a
deps.ts
file.
// deps.ts
export {
Dummy,
Fake,
Mock,
Spy,
Stub
} from "https://deno.land/x/[email protected]/mod.ts";
- 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.1.0-rc.1
Compatibility
- Requires Deno v1.25.3
- Requires Node v14, v16, v17, or v18
Documentation
Usage
- Create a
deps.ts
file.
// deps.ts
export {
Dummy,
Fake,
Mock,
Spy,
Stub
} from "https://deno.land/x/[email protected]/mod.ts";
- 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
Compatibility
- Requires Deno v1.20 or higher
Documentation
Usage
- Create a
deps.ts
file.
// deps.ts
export { Dummy, Fake, Mock, Stub } from "https://deno.land/x/[email protected]/mod.ts";
- 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
Test release for deno.land/x and npm. Checking issue with missing README.
v2.0.0-alpha-2
Test release for deno.land/x and npm. Fixing incorrect versioning.
v2.0.0-alpha-1
Test release for deno.land/x and npm.
v1.1.15
Compatibility
- Requires Deno v1.20 or higher
- Uses Deno [email protected]
Importing
- Import this latest release by using the following in your project(s):
import { Rhum } from "https://deno.land/x/[email protected]/mod.ts";
Updates
- fix: Mocking a class with getters doesn't set default initialised value (#148)
- chore: Update deps (use Deno [email protected])
v1.1.14
Compatibility
- Requires Deno v1.19 or higher
- Uses Deno [email protected]
Importing
- Import this latest release by using the following in your project(s):
import { Rhum } from "https://deno.land/x/[email protected]/mod.ts";
Updates
- chore: Update dependencies and bump version numbers across repo (#142)
- fix: Unable to mock getters and setters
v1.1.13
Compatibility
- Requires Deno v1.19.0 or higher
- Uses Deno [email protected]
Importing
- Import this latest release by using the following in your project(s):
import { Rhum } from "https://deno.land/x/[email protected]/mod.ts";
Updates