@jaypie/testkit 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jaypie/testkit",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "author": "Finlayson Studio",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -7,6 +7,7 @@ export function mockLogFactory() {
7
7
  error: vi.fn(),
8
8
  fatal: vi.fn(),
9
9
  info: vi.fn(),
10
+ lib: vi.fn(),
10
11
  tag: vi.fn(),
11
12
  trace: vi.fn(),
12
13
  untag: vi.fn(),
@@ -22,6 +23,7 @@ export function mockLogFactory() {
22
23
  mock.trace.var = mock.var;
23
24
  mock.warn.var = mock.var;
24
25
  // Have modules return correct objects
26
+ mock.lib.mockReturnValue(mock);
25
27
  mock.with.mockReturnValue(mock);
26
28
 
27
29
  // Create something in the shape of the module
@@ -30,6 +32,7 @@ export function mockLogFactory() {
30
32
  error: mock.error,
31
33
  fatal: mock.fatal,
32
34
  info: mock.info,
35
+ lib: mock.lib,
33
36
  tag: mock.tag,
34
37
  trace: mock.trace,
35
38
  untag: mock.untag,