@forwardimpact/libharness 0.1.18 → 0.1.19
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 +12 -6
- package/src/fixture/assertions.js +0 -2
- package/src/fixture/eval.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forwardimpact/libharness",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.19",
|
|
4
4
|
"description": "Shared mocks and test fixtures so every library and service tests the same way.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"test",
|
|
@@ -9,6 +9,14 @@
|
|
|
9
9
|
"harness",
|
|
10
10
|
"agent"
|
|
11
11
|
],
|
|
12
|
+
"homepage": "https://www.forwardimpact.team",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/forwardimpact/monorepo.git",
|
|
16
|
+
"directory": "libraries/libharness"
|
|
17
|
+
},
|
|
18
|
+
"license": "Apache-2.0",
|
|
19
|
+
"author": "D. Olsson <hi@senzilla.io>",
|
|
12
20
|
"forwardimpact": {
|
|
13
21
|
"capability": "foundations",
|
|
14
22
|
"needs": [
|
|
@@ -29,16 +37,14 @@
|
|
|
29
37
|
"scripts": {
|
|
30
38
|
"test": "bun test test/*.test.js"
|
|
31
39
|
},
|
|
32
|
-
"author": "Forward Impact Team",
|
|
33
|
-
"license": "MIT",
|
|
34
40
|
"peerDependencies": {
|
|
35
41
|
"@forwardimpact/libtype": "*"
|
|
36
42
|
},
|
|
37
|
-
"publishConfig": {
|
|
38
|
-
"access": "public"
|
|
39
|
-
},
|
|
40
43
|
"engines": {
|
|
41
44
|
"bun": ">=1.2.0",
|
|
42
45
|
"node": ">=18.0.0"
|
|
46
|
+
},
|
|
47
|
+
"publishConfig": {
|
|
48
|
+
"access": "public"
|
|
43
49
|
}
|
|
44
50
|
}
|
|
@@ -9,7 +9,6 @@ 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
|
|
13
12
|
{ message: pattern instanceof RegExp ? pattern : new RegExp(pattern) },
|
|
14
13
|
message,
|
|
15
14
|
);
|
|
@@ -24,7 +23,6 @@ export function assertThrowsMessage(fn, pattern, message) {
|
|
|
24
23
|
export async function assertRejectsMessage(fn, pattern, message) {
|
|
25
24
|
await assert.rejects(
|
|
26
25
|
fn,
|
|
27
|
-
// eslint-disable-next-line security/detect-non-literal-regexp -- test-only utility; pattern is developer-controlled
|
|
28
26
|
{ message: pattern instanceof RegExp ? pattern : new RegExp(pattern) },
|
|
29
27
|
message,
|
|
30
28
|
);
|
package/src/fixture/eval.js
CHANGED
|
@@ -71,7 +71,7 @@ export function collectLines(stream) {
|
|
|
71
71
|
* @returns {string}
|
|
72
72
|
*/
|
|
73
73
|
export function stripAnsi(s) {
|
|
74
|
-
//
|
|
74
|
+
// biome-ignore lint/suspicious/noControlCharactersInRegex: ANSI SGR detection is intentional.
|
|
75
75
|
return s.replace(/\[[0-9;]*m/g, "");
|
|
76
76
|
}
|
|
77
77
|
|