@spoosh/test-utils 0.1.6 → 0.1.7

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/dist/index.cjs CHANGED
@@ -53,7 +53,7 @@ function createMockContext(options = {}) {
53
53
  forceRefetch,
54
54
  hookId,
55
55
  request = {},
56
- metadata = /* @__PURE__ */ new Map(),
56
+ temp = /* @__PURE__ */ new Map(),
57
57
  plugins = { get: import_vitest.vi.fn() }
58
58
  } = options;
59
59
  return {
@@ -64,7 +64,7 @@ function createMockContext(options = {}) {
64
64
  tags,
65
65
  requestTimestamp: Date.now(),
66
66
  request,
67
- metadata,
67
+ temp,
68
68
  stateManager,
69
69
  eventEmitter,
70
70
  plugins,
package/dist/index.d.cts CHANGED
@@ -19,8 +19,8 @@ type MockContextOptions<TData = unknown, TError = unknown> = {
19
19
  hookId?: string;
20
20
  state?: Partial<OperationState<TData, TError>>;
21
21
  request?: Record<string, unknown>;
22
- /** Custom metadata map for the context */
23
- metadata?: Map<string, unknown>;
22
+ /** Custom temp map for the context */
23
+ temp?: Map<string, unknown>;
24
24
  /** Custom plugins object with get function */
25
25
  plugins?: {
26
26
  get: ReturnType<typeof vi.fn>;
package/dist/index.d.ts CHANGED
@@ -19,8 +19,8 @@ type MockContextOptions<TData = unknown, TError = unknown> = {
19
19
  hookId?: string;
20
20
  state?: Partial<OperationState<TData, TError>>;
21
21
  request?: Record<string, unknown>;
22
- /** Custom metadata map for the context */
23
- metadata?: Map<string, unknown>;
22
+ /** Custom temp map for the context */
23
+ temp?: Map<string, unknown>;
24
24
  /** Custom plugins object with get function */
25
25
  plugins?: {
26
26
  get: ReturnType<typeof vi.fn>;
package/dist/index.js CHANGED
@@ -25,7 +25,7 @@ function createMockContext(options = {}) {
25
25
  forceRefetch,
26
26
  hookId,
27
27
  request = {},
28
- metadata = /* @__PURE__ */ new Map(),
28
+ temp = /* @__PURE__ */ new Map(),
29
29
  plugins = { get: vi.fn() }
30
30
  } = options;
31
31
  return {
@@ -36,7 +36,7 @@ function createMockContext(options = {}) {
36
36
  tags,
37
37
  requestTimestamp: Date.now(),
38
38
  request,
39
- metadata,
39
+ temp,
40
40
  stateManager,
41
41
  eventEmitter,
42
42
  plugins,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spoosh/test-utils",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Test utilities for Spoosh plugins",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -42,7 +42,7 @@
42
42
  "dist"
43
43
  ],
44
44
  "dependencies": {
45
- "@spoosh/core": "0.11.0"
45
+ "@spoosh/core": "0.11.1"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "vitest": ">=1.0.0"