@digitaldefiance/express-suite-test-utils 1.0.6 → 1.0.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.
Files changed (2) hide show
  1. package/README.md +27 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Test utilities for Digital Defiance Express Suite projects.
4
4
 
5
+ Part of [Express Suite](https://github.com/Digital-Defiance/express-suite)
6
+
5
7
  ## Installation
6
8
 
7
9
  ```bash
@@ -12,6 +14,31 @@ yarn add @digitaldefiance/express-suite-test-utils
12
14
 
13
15
  ## Usage
14
16
 
17
+ ### Importing Test Utilities from node-express-suite
18
+
19
+ Test helpers and mocks from `@digitaldefiance/node-express-suite` are available via a separate entry point:
20
+
21
+ ```typescript
22
+ import {
23
+ mockFunctions,
24
+ setupTestEnv,
25
+ // ... other test helpers
26
+ } from '@digitaldefiance/node-express-suite/testing';
27
+
28
+ // Use in your tests
29
+ beforeAll(async () => {
30
+ await setupTestEnv();
31
+ });
32
+ ```
33
+
34
+ **Note:** These utilities require `@faker-js/faker` as a peer dependency:
35
+
36
+ ```bash
37
+ npm install -D @faker-js/faker
38
+ # or
39
+ yarn add -D @faker-js/faker
40
+ ```
41
+
15
42
  ### toThrowType Matcher
16
43
 
17
44
  Custom Jest matcher for testing error types with optional validation:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitaldefiance/express-suite-test-utils",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Test utilities for Digital Defiance Express Suite",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",