@forwardimpact/libharness 0.1.11 → 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 +7 -9
- package/{fixture → src/fixture}/assertions.js +2 -0
- /package/{fixture → src/fixture}/index.js +0 -0
- /package/{fixture → src/fixture}/pathway.js +0 -0
- /package/{fixture → src/fixture}/services.js +0 -0
- /package/{index.js → src/index.js} +0 -0
- /package/{mock → src/mock}/clients.js +0 -0
- /package/{mock → src/mock}/config.js +0 -0
- /package/{mock → src/mock}/data.js +0 -0
- /package/{mock → src/mock}/fs.js +0 -0
- /package/{mock → src/mock}/grpc.js +0 -0
- /package/{mock → src/mock}/http.js +0 -0
- /package/{mock → src/mock}/index.js +0 -0
- /package/{mock → src/mock}/logger.js +0 -0
- /package/{mock → src/mock}/observer.js +0 -0
- /package/{mock → src/mock}/resource-index.js +0 -0
- /package/{mock → src/mock}/service-callbacks.js +0 -0
- /package/{mock → src/mock}/services.js +0 -0
- /package/{mock → src/mock}/storage.js +0 -0
package/package.json
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forwardimpact/libharness",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "
|
|
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
|
-
"
|
|
14
|
-
"mock/**/*.js",
|
|
15
|
-
"fixture/**/*.js",
|
|
13
|
+
"src/**/*.js",
|
|
16
14
|
"README.md"
|
|
17
15
|
],
|
|
18
16
|
"scripts": {
|
|
@@ -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
|
/package/{mock → src/mock}/fs.js
RENAMED
|
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
|