@forwardimpact/libharness 0.1.8 → 0.1.13

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,18 +1,16 @@
1
1
  {
2
2
  "name": "@forwardimpact/libharness",
3
- "version": "0.1.8",
4
- "description": "Test harness and mock infrastructure for guide tests",
3
+ "version": "0.1.13",
4
+ "description": "Shared test harness and mock infrastructure for the Forward Impact monorepo",
5
5
  "type": "module",
6
- "main": "index.js",
6
+ "main": "./src/index.js",
7
7
  "exports": {
8
- ".": "./index.js",
9
- "./mock": "./mock/index.js",
10
- "./fixture": "./fixture/index.js"
8
+ ".": "./src/index.js",
9
+ "./mock": "./src/mock/index.js",
10
+ "./fixture": "./src/fixture/index.js"
11
11
  },
12
12
  "files": [
13
- "index.js",
14
- "mock/**/*.js",
15
- "fixture/**/*.js",
13
+ "src/**/*.js",
16
14
  "README.md"
17
15
  ],
18
16
  "scripts": {
@@ -33,6 +31,7 @@
33
31
  "access": "public"
34
32
  },
35
33
  "engines": {
36
- "bun": ">=1.2.0"
34
+ "bun": ">=1.2.0",
35
+ "node": ">=18.0.0"
37
36
  }
38
37
  }
@@ -9,6 +9,7 @@ import assert from "node:assert";
9
9
  export function assertThrowsMessage(fn, pattern, message) {
10
10
  assert.throws(
11
11
  fn,
12
+ // eslint-disable-next-line security/detect-non-literal-regexp -- test-only utility; pattern is developer-controlled
12
13
  { message: pattern instanceof RegExp ? pattern : new RegExp(pattern) },
13
14
  message,
14
15
  );
@@ -23,6 +24,7 @@ export function assertThrowsMessage(fn, pattern, message) {
23
24
  export async function assertRejectsMessage(fn, pattern, message) {
24
25
  await assert.rejects(
25
26
  fn,
27
+ // eslint-disable-next-line security/detect-non-literal-regexp -- test-only utility; pattern is developer-controlled
26
28
  { message: pattern instanceof RegExp ? pattern : new RegExp(pattern) },
27
29
  message,
28
30
  );
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes